removed unnecessary apply button

This commit is contained in:
Sebastian Wehling-Benatelli 2015-07-07 11:23:29 +02:00
parent ca1b41511c
commit cf944358dd

View File

@ -264,8 +264,7 @@ class PickDlg(QDialog):
_innerlayout.addWidget(self.multicompfig) _innerlayout.addWidget(self.multicompfig)
# add button box to the dialog # add button box to the dialog
_buttonbox = QDialogButtonBox(QDialogButtonBox.Apply | _buttonbox = QDialogButtonBox(QDialogButtonBox.Ok |
QDialogButtonBox.Ok |
QDialogButtonBox.Cancel) QDialogButtonBox.Cancel)
# merge widgets and layouts to establish the dialog # merge widgets and layouts to establish the dialog
@ -278,7 +277,6 @@ class PickDlg(QDialog):
self.selectPhase.currentIndexChanged.connect(self.verifyPhaseSelection) self.selectPhase.currentIndexChanged.connect(self.verifyPhaseSelection)
_buttonbox.accepted.connect(self.accept) _buttonbox.accepted.connect(self.accept)
_buttonbox.rejected.connect(self.reject) _buttonbox.rejected.connect(self.reject)
_buttonbox.button(QDialogButtonBox.Apply).clicked.connect(self.apply)
# finally layout the entire dialog # finally layout the entire dialog
self.setLayout(_outerlayout) self.setLayout(_outerlayout)