From 34ff4396e8f8a8a7ef1cbe9d02053077f120de26 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 8 Dec 2005 09:28:33 +0000 Subject: [PATCH] Fix bug 10815: It's impossible to create a copy of an object ('Paste' menu item is inactive). --- src/SalomeApp/SalomeApp_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index e77188458..f1477565a 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -372,7 +372,7 @@ void SalomeApp_Application::onSelectionChanged() if( so ) { SALOMEDS_SObject* aSO = dynamic_cast(so.get()); if( aSO && studyMgr()->CanPaste(so) ) qaction->setEnabled(true); - qaction->setEnabled(false); + else qaction->setEnabled(false); } else qaction->setEnabled(false); } -- 2.39.2