Remove unneeded slot connections and reject overwrite

This commit is contained in:
donoban 2019-02-16 15:54:22 +01:00
parent 52188318b8
commit a9a2022206
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -155,10 +155,6 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
assert idx in range(self.tabWidget.count())
self.tabWidget.setCurrentIndex(idx)
self.buttonBox.button(QtGui.QDialogButtonBox.Ok).clicked.connect(
self.save_and_apply)
self.buttonBox.button(QtGui.QDialogButtonBox.Cancel).clicked.connect(
self.reject)
self.buttonBox.button(QtGui.QDialogButtonBox.Apply).clicked.connect(
self.apply)
@ -257,12 +253,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
return
super(VMSettingsWindow, self).keyPressEvent(event)
def reject(self):
self.done(0)
# needed not to close the dialog before applying changes
def accept(self):
pass
self.save_and_apply()
def save_changes(self):
error = self.__save_changes__()