]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022671: [CEA] Standalone Help Browser
authorvsr <vsr@opencascade.com>
Fri, 15 Aug 2014 05:00:50 +0000 (09:00 +0400)
committervsr <vsr@opencascade.com>
Fri, 15 Aug 2014 05:00:50 +0000 (09:00 +0400)
Change the way application is identified to share single running HelpBrowser between SALOME sessions even if there are several different installations.

src/HelpBrowser/HelpBrowser.cxx

index 3578aa709375032c9c8d0a259cd7081b4ab282ce..0e77f63caf253f7fa9092f2f471a21a084de71d9 100644 (file)
@@ -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