From 3b95e1f95e79c102ed0a4e3227ef9fce4e385542 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 15 Aug 2014 09:00:50 +0400 Subject: [PATCH] 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. --- src/HelpBrowser/HelpBrowser.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2