Fixed unreachable code thanks to travis

This commit is contained in:
donoban 2018-11-25 19:33:16 +01:00
parent b2bdae2c2d
commit fd845a1219
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -240,11 +240,12 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.tr(msg))
self.threads_list.remove(thread)
return
if self.thread_closes:
self.done(0)
return
raise RuntimeError('No finished thread found')
def keyPressEvent(self, event): # pylint: disable=invalid-name