X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ActionsMgr.cpp;h=8b6fbadd1c685e94305ef78d791405823e73c060;hb=64fc7e4fdd63997ec7a502b233ef5f88186d5bbb;hp=542e1b5e4979febf30f10433af2c16026c7eb5ec;hpb=03936c76cd52c555961e4636e640c12fe2d47f2f;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 542e1b5e4..8b6fbadd1 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -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); }