Removed unneeded reject() definition

This commit is contained in:
donoban 2021-03-14 13:22:25 +01:00
parent 094ec99829
commit 70ea6e2591
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -41,7 +41,6 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog,
self.tr("Boot {vm} from device").format(vm=self.vm))
self.buttonBox.accepted.connect(self.save_and_apply)
self.buttonBox.rejected.connect(self.reject)
# populate buttons and such
self.__init_buttons__()
@ -52,9 +51,6 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog,
self.qapp.setApplicationName(self.tr("Boot Qube From Device"))
self.qapp.setWindowIcon(QtGui.QIcon.fromTheme("qubes-manager"))
def reject(self):
self.done(0)
def save_and_apply(self):
if self.blockDeviceRadioButton.isChecked():
self.cdrom_location = self.blockDeviceComboBox.currentText()