]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug tool correction.
authornds <nds@opencascade.com>
Mon, 16 Jan 2017 11:58:11 +0000 (14:58 +0300)
committernds <nds@opencascade.com>
Mon, 16 Jan 2017 11:58:11 +0000 (14:58 +0300)
src/XGUI/XGUI_Workshop.cpp

index 8a13796870b6fd4c01a7930687d21ddf56ec1fba..4c8e4ab75ed103425231f1b38286468aee2c08e1 100755 (executable)
@@ -1375,8 +1375,11 @@ void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked)
     if (DFBrowser_FirstCall) {
       Handle(CDF_Application) anApplication = CDF_Session::CurrentSession()->CurrentApplication();
       DFBrowserAPI_Communicator* aCommunicator =
-                     DFBrowserAPI_Communicator::loadPluginLibrary("DFBrowser.dll");
-      aCommunicator->setApplication(anApplication);
+                     DFBrowserAPI_Communicator::loadPluginLibrary("TKDFBrowser.dll");
+      if (!aCommunicator) // to support previous configuration
+        aCommunicator = DFBrowserAPI_Communicator::loadPluginLibrary("DFBrowser.dll");
+      if (aCommunicator)
+        aCommunicator->setApplication(anApplication);
       DFBrowser_FirstCall = false;
     }
   }