From a9a202220632594d9ef8b38d0871a7e41e8e9865 Mon Sep 17 00:00:00 2001 From: donoban Date: Sat, 16 Feb 2019 15:54:22 +0100 Subject: [PATCH] Remove unneeded slot connections and reject overwrite --- qubesmanager/settings.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 07baf7a..5212801 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -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__()