From: rnv Date: Thu, 28 Jan 2016 15:12:39 +0000 (+0300) Subject: Fix problem with getObjectBrowser() from python. X-Git-Tag: V8_0_0rc1~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f418151d7daa0f859bfe371f7a384be7d5bb4b0e;p=modules%2Fgui.git Fix problem with getObjectBrowser() from python. --- diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx index 42e812425..f130b4e32 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx @@ -500,7 +500,7 @@ public: virtual void Execute() { LightApp_Application* anApp = getApplication(); - if ( anApp ) { + if ( anApp && anApp->objectBrowser() ) { myResult = anApp->objectBrowser()->treeView(); } }