From cf944358dd400f35b2c237950547993165024247 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 7 Jul 2015 11:23:29 +0200 Subject: [PATCH] removed unnecessary apply button --- pylot/core/util/widgets.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index ee117b44..2796b6a5 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -264,8 +264,7 @@ class PickDlg(QDialog): _innerlayout.addWidget(self.multicompfig) # add button box to the dialog - _buttonbox = QDialogButtonBox(QDialogButtonBox.Apply | - QDialogButtonBox.Ok | + _buttonbox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) # merge widgets and layouts to establish the dialog @@ -278,7 +277,6 @@ class PickDlg(QDialog): self.selectPhase.currentIndexChanged.connect(self.verifyPhaseSelection) _buttonbox.accepted.connect(self.accept) _buttonbox.rejected.connect(self.reject) - _buttonbox.button(QDialogButtonBox.Apply).clicked.connect(self.apply) # finally layout the entire dialog self.setLayout(_outerlayout)