restart wizzard when wrong password or backup corrupted

fix: https://github.com/QubesOS/qubes-issues/issues/1589
This commit is contained in:
donoban 2018-10-22 23:47:51 +02:00
parent 0e951dc156
commit 9102d200bd
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -171,6 +171,7 @@ class RestoreVMsWindow(ui_restoredlg.Ui_Restore, QtGui.QWizard):
self.select_vms_widget.available_list.addItem(vmname)
except exc.QubesException as ex:
QtGui.QMessageBox.warning(None, self.tr("Restore error!"), str(ex))
self.restart()
def append_output(self, text):
self.commit_text_edit.append(text)