]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug IPAL10122.
authormzn <mzn@opencascade.com>
Mon, 20 Mar 2006 12:32:34 +0000 (12:32 +0000)
committermzn <mzn@opencascade.com>
Mon, 20 Mar 2006 12:32:34 +0000 (12:32 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index 9d17c32e6698289e45101a2b21f39c04f07036c6..fde0af7825e12b7e124115b97d23cf382eed7e1a 100644 (file)
@@ -339,6 +339,14 @@ void SalomeApp_Application::onPaste()
   _PTR(Study) stdDS = study->studyDS();
   if(!stdDS) return;
 
+  if ( stdDS->GetProperties()->IsLocked() ) {
+    SUIT_MessageBox::warn1 ( desktop(),
+                            QObject::tr("WRN_WARNING"),
+                            QObject::tr("WRN_STUDY_LOCKED"),
+                            QObject::tr("BUT_OK") );
+    return;
+  }
+
   SALOME_ListIteratorOfListIO it( list );
   if(it.More())
     {