From 2cb1df6914372a8fa317bd2839549caca7455e66 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 15 May 2019 16:42:23 +0300 Subject: [PATCH] Fix for "16863 [CEA 16749] documentation browser contents lost if second salome instance is closed" issue --- src/HelpBrowser/HelpBrowser.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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] ); -- 2.30.2