Salome HOME
Simplified calculation of fly out distance and creation of constraints limited only...
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.cpp
index 542e1b5e4979febf30f10433af2c16026c7eb5ec..8b6fbadd1c685e94305ef78d791405823e73c060 100644 (file)
@@ -173,14 +173,6 @@ void XGUI_ActionsMgr::updateOnViewSelection()
   }
 }
 
-void XGUI_ActionsMgr::onAcceptAllToggled(bool theState)
-{
-  if (!theState) {
-    QAction* anAcceptAllAction = operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL);
-    anAcceptAllAction->setEnabled(theState);
-  }
-}
-
 QKeySequence XGUI_ActionsMgr::registerShortcut(const QKeySequence& theKeySequence)
 {
   if (theKeySequence.isEmpty()) {
@@ -246,9 +238,6 @@ QAction* XGUI_ActionsMgr::operationStateAction(OperationStateActionId theId, QOb
       case Accept:
       case AcceptAll:
         aResult = new QAction(QIcon(":pictures/button_ok.png"), "", theParent);
-        // the default value is disabled, so the next connect is used to restore this
-        // default state by untoggle this action
-        connect(this, SIGNAL(toggled(bool)), this, SLOT(onAcceptAllToggled(bool)));
         break;
       case Abort:
       case AbortAll: {
@@ -271,7 +260,7 @@ QAction* XGUI_ActionsMgr::operationStateAction(OperationStateActionId theId, QOb
 
 QAction* XGUI_ActionsMgr::action(const QString& theId)
 {
-  QAction* anAction;
+  QAction* anAction = 0;
   if(myActions.contains(theId)) {
     anAction = myActions.value(theId);
   }