]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Show "Rename" menu command for light modules in "distributed mode" V7_3_0b1
authorvsr <vsr@opencascade.com>
Thu, 5 Dec 2013 10:55:55 +0000 (10:55 +0000)
committervsr <vsr@opencascade.com>
Thu, 5 Dec 2013 10:55:55 +0000 (10:55 +0000)
src/SalomeApp/SalomeApp_Study.cxx

index 07ffd4aba283c6339d93990834f5060a1cd5a237..a4ae7c10d611325d13a17912e319f4a072e4bc90 100644 (file)
@@ -1163,7 +1163,13 @@ void SalomeApp_Study::updateFromNotebook( const QString& theFileName, bool isSav
 
 LightApp_DataObject* SalomeApp_Study::findObjectByEntry( const QString& theEntry )
 {
-  LightApp_DataObject* o = dynamic_cast<LightApp_DataObject*>( myObserver ? myObserver->findObject( theEntry.toLatin1().constData() ) : 0 );
+  LightApp_DataObject* o = 0;
+  if ( myObserver ) {
+    o = dynamic_cast<LightApp_DataObject*>( myObserver->findObject( theEntry.toLatin1().constData() ) );
+  }
+  if ( !o ) {
+    o = LightApp_Study::findObjectByEntry( theEntry );
+  }
   return o;
 }