Deleted unused method show_error()

clear_threads() handles messages now
This commit is contained in:
donoban 2018-10-22 20:03:20 +02:00
parent edb13aec17
commit 0e951dc156
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -781,8 +781,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
# remove the VM
thread = common_threads.RemoveVMThread(vm)
self.threads_list.append(thread)
self.connect(thread, QtCore.SIGNAL("show_error(QString, QString)"),
self.show_error)
thread.finished.connect(self.clear_threads)
thread.start()
@ -840,12 +838,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
thread.finished.connect(self.clear_threads)
thread.start()
def show_error(self, error, error_msg):
QtGui.QMessageBox.warning(
None,
self.tr(error),
self.tr("ERROR: {0}").format(error_msg))
# noinspection PyArgumentList
@QtCore.pyqtSlot(name='on_action_startvm_tools_install_triggered')
# TODO: replace with boot from device