From: nds Date: Mon, 16 Jan 2017 12:50:14 +0000 (+0300) Subject: Debug tool correction. X-Git-Tag: V_2.7.0~340 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96c4188a1a5107b702f723b4a88ed77d4ec55d87;p=modules%2Fshaper.git Debug tool correction. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 4c8e4ab75..70d432f47 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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; } }