From dfeda9a53373b7e8a558311d0371fdeee1395a6f Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 16 Jan 2017 14:58:11 +0300 Subject: [PATCH] Debug tool correction. --- src/XGUI/XGUI_Workshop.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 8a1379687..4c8e4ab75 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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; } } -- 2.39.2