From: rnv Date: Wed, 15 May 2019 13:42:23 +0000 (+0300) Subject: Fix for "16863 [CEA 16749] documentation browser contents lost if second salome insta... X-Git-Tag: V9_4_0a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2cb1df6914372a8fa317bd2839549caca7455e66;p=modules%2Fgui.git Fix for "16863 [CEA 16749] documentation browser contents lost if second salome instance is closed" issue --- diff --git a/src/HelpBrowser/HelpBrowser.cxx b/src/HelpBrowser/HelpBrowser.cxx index 72023e1f6..052e0d969 100644 --- a/src/HelpBrowser/HelpBrowser.cxx +++ b/src/HelpBrowser/HelpBrowser.cxx @@ -107,15 +107,17 @@ public: } void load( const QString& url ) { - QtxWebBrowser::load( url ); - RaiseWindowHelper* helper = new RaiseWindowHelper( this ); + if( ! url.startsWith("--remove") ) { + QtxWebBrowser::load( url ); + RaiseWindowHelper* helper = new RaiseWindowHelper( this ); + } } }; int main( int argc, char **argv ) { // Set application name (for preferences) - HelpBrowser_Application::setApplicationName( "salome" ); + HelpBrowser_Application::setApplicationName("salome"); // Specify application identifier via its name QFileInfo fi( argv[0] );