From: asl Date: Thu, 29 Sep 2005 08:43:17 +0000 (+0000) Subject: PAL9864 X-Git-Tag: V3_1_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=31b10fa544d700206611714e0c69955b1a3dfdd0;p=modules%2Fgui.git PAL9864 --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 84bbbdaf7..bea59c760 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -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 {