From 8d623c5450c440d287993e3650ec4d1e4d44ca58 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 5 Dec 2013 10:55:55 +0000 Subject: [PATCH] Show "Rename" menu command for light modules in "distributed mode" --- src/SalomeApp/SalomeApp_Study.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 07ffd4aba..a4ae7c10d 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -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( myObserver ? myObserver->findObject( theEntry.toLatin1().constData() ) : 0 ); + LightApp_DataObject* o = 0; + if ( myObserver ) { + o = dynamic_cast( myObserver->findObject( theEntry.toLatin1().constData() ) ); + } + if ( !o ) { + o = LightApp_Study::findObjectByEntry( theEntry ); + } return o; } -- 2.39.2