Browse Source

Fixed unreachable code thanks to travis

donoban 5 years ago
parent
commit
fd845a1219
1 changed files with 2 additions and 1 deletions
  1. 2 1
      qubesmanager/settings.py

+ 2 - 1
qubesmanager/settings.py

@@ -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