From: vsr Date: Fri, 15 Aug 2014 05:00:50 +0000 (+0400) Subject: 0022671: [CEA] Standalone Help Browser X-Git-Tag: V7_5_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3b95e1f95e79c102ed0a4e3227ef9fce4e385542;p=modules%2Fgui.git 0022671: [CEA] Standalone Help Browser Change the way application is identified to share single running HelpBrowser between SALOME sessions even if there are several different installations. --- diff --git a/src/HelpBrowser/HelpBrowser.cxx b/src/HelpBrowser/HelpBrowser.cxx index 3578aa709..0e77f63ca 100644 --- a/src/HelpBrowser/HelpBrowser.cxx +++ b/src/HelpBrowser/HelpBrowser.cxx @@ -107,9 +107,12 @@ int main( int argc, char **argv ) QtSingleApplication::setApplicationName( "salome" ); + // specify application identifier via its name + QFileInfo fi( argv[0] ); + // create application instance - QtSingleApplication instance( argc, argv ); + QtSingleApplication instance( fi.fileName(), argc, argv ); // parse command line arguments