]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0023263: [EDF] Crash when activating YACS module from another module which does not...
authorvsr <vsr@opencascade.com>
Fri, 1 Apr 2016 08:25:50 +0000 (11:25 +0300)
committervsr <vsr@opencascade.com>
Fri, 1 Apr 2016 08:25:50 +0000 (11:25 +0300)
- First part (second is in YACS module)

src/LightApp/LightApp_Module.cxx
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_Application.h

index 8bf8e287f53d6f7e52619eae9e5e5cf8eda714f4..6e7367164d3688edcceb3c33c2f21f713d922042 100644 (file)
@@ -157,6 +157,8 @@ void LightApp_Module::contextMenuPopup( const QString& client, QMenu* menu, QStr
 void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel, 
                                         SUIT_DataObject* theDataObject )
 {
+  if (!getApp()->objectBrowser())
+    return;
   bool upd = getApp()->objectBrowser()->autoUpdate();
   getApp()->objectBrowser()->setAutoUpdate( false );
 
index eaec2acdeb3e7d91c20c81c446b34dbed6c7e80f..dea5dccc20ca24e3f1d64f1ce18256d8b73ac03c 100644 (file)
@@ -1536,6 +1536,7 @@ void SalomeApp_Application::onDblClick( SUIT_DataObject* theObj )
     if ( !aSelectedIndexes.isEmpty() )
       ob->treeView()->scrollTo( aSelectedIndexes.first() );
   }
+  emit objectDoubleClicked( theObj );
 }
 
 /*!
index 316a4cab39d46081f3f3cd2cad0955e34514e298..c2b62929da0c4e3ab85403d91621293f2b44ed3a 100644 (file)
@@ -201,7 +201,7 @@ signals:
                                                          const QString& theStudyName,
                                                          bool theIsStudySaved );
   void                                notebookVarUpdated( QString theVarName );
-
+  void                                objectDoubleClicked( SUIT_DataObject* );
 };
 
 #ifdef WIN32