From 96c4188a1a5107b702f723b4a88ed77d4ec55d87 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 16 Jan 2017 15:50:14 +0300 Subject: [PATCH] Debug tool correction. --- src/XGUI/XGUI_Workshop.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } } -- 2.39.2