]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with getObjectBrowser() from python.
authorrnv <rnv@opencascade.com>
Thu, 28 Jan 2016 15:12:39 +0000 (18:12 +0300)
committerrnv <rnv@opencascade.com>
Thu, 28 Jan 2016 15:12:39 +0000 (18:12 +0300)
src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx

index 42e81242522eee4b6f09cc20aa9e859c5276a212..f130b4e32565c776625c9413d0e52bb8b20b3429 100644 (file)
@@ -500,7 +500,7 @@ public:
   virtual void Execute()
   {
     LightApp_Application* anApp = getApplication();
-    if ( anApp ) {
+    if ( anApp && anApp->objectBrowser() ) {
       myResult = anApp->objectBrowser()->treeView();
     }
   }