]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL9864
authorasl <asl@opencascade.com>
Thu, 29 Sep 2005 08:43:17 +0000 (08:43 +0000)
committerasl <asl@opencascade.com>
Thu, 29 Sep 2005 08:43:17 +0000 (08:43 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index 84bbbdaf7aa5f93792f170744fb4a26717c1c2d9..bea59c7603257d5e999185d434138344df04726a 100644 (file)
@@ -755,11 +755,11 @@ void SalomeApp_Application::onSelectionChanged()
       _PTR(SObject) so = stdDS->FindObjectID(it.Value()->getEntry());
 
       qaction = action(EditCopyId);
-      if(studyMgr()->CanCopy(so) ) qaction->setEnabled(true);
+      if( so && studyMgr()->CanCopy(so) ) qaction->setEnabled(true);
       else qaction->setEnabled(false);
 
       qaction = action(EditPasteId);
-      if( studyMgr()->CanPaste(so) ) qaction->setEnabled(true);
+      if( so && studyMgr()->CanPaste(so) ) qaction->setEnabled(true);
       else qaction->setEnabled(false);
    }
    else {