Salome HOME
Debug tool correction.
authornds <nds@opencascade.com>
Mon, 16 Jan 2017 12:50:14 +0000 (15:50 +0300)
committernds <nds@opencascade.com>
Mon, 16 Jan 2017 12:50:14 +0000 (15:50 +0300)
src/XGUI/XGUI_Workshop.cpp

index 4c8e4ab75ed103425231f1b38286468aee2c08e1..70d432f4763d12ee83aecb6e5087f7c0510f4322 100755 (executable)
@@ -1376,10 +1376,12 @@ void XGUI_Workshop::onContextMenuCommand(const QString& theId, bool isChecked)
       Handle(CDF_Application) anApplication = CDF_Session::CurrentSession()->CurrentApplication();
       DFBrowserAPI_Communicator* aCommunicator =
                      DFBrowserAPI_Communicator::loadPluginLibrary("TKDFBrowser.dll");
-      if (!aCommunicator) // to support previous configuration
-        aCommunicator = DFBrowserAPI_Communicator::loadPluginLibrary("DFBrowser.dll");
-      if (aCommunicator)
+      if (aCommunicator) {
         aCommunicator->setApplication(anApplication);
+        Handle(AIS_InteractiveContext) aContext = viewer()->AISContext();
+        if (aContext)
+          aCommunicator->setContext(aContext);
+      }
       DFBrowser_FirstCall = false;
     }
   }