From: nds Date: Mon, 16 Jan 2017 11:58:11 +0000 (+0300) Subject: Debug tool correction. X-Git-Tag: V_2.7.0~341 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dfeda9a53373b7e8a558311d0371fdeee1395a6f;p=modules%2Fshaper.git Debug tool correction. --- 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; } }