From f418151d7daa0f859bfe371f7a384be7d5bb4b0e Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 28 Jan 2016 18:12:39 +0300 Subject: [PATCH] Fix problem with getObjectBrowser() from python. --- src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.39.2