X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ActionsMgr.cpp;h=8b6fbadd1c685e94305ef78d791405823e73c060;hb=64fc7e4fdd63997ec7a502b233ef5f88186d5bbb;hp=32f7e4af556fdd5b49a985298734a12de3336b92;hpb=f0f8fbdcadad2d5d42c443e70afc6251faea1469;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 32f7e4af5..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: {