Deleted unused method show_error()
clear_threads() handles messages now
This commit is contained in:
parent
edb13aec17
commit
0e951dc156
@ -781,8 +781,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
# remove the VM
|
# remove the VM
|
||||||
thread = common_threads.RemoveVMThread(vm)
|
thread = common_threads.RemoveVMThread(vm)
|
||||||
self.threads_list.append(thread)
|
self.threads_list.append(thread)
|
||||||
self.connect(thread, QtCore.SIGNAL("show_error(QString, QString)"),
|
|
||||||
self.show_error)
|
|
||||||
thread.finished.connect(self.clear_threads)
|
thread.finished.connect(self.clear_threads)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
@ -840,12 +838,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
thread.finished.connect(self.clear_threads)
|
thread.finished.connect(self.clear_threads)
|
||||||
thread.start()
|
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
|
# noinspection PyArgumentList
|
||||||
@QtCore.pyqtSlot(name='on_action_startvm_tools_install_triggered')
|
@QtCore.pyqtSlot(name='on_action_startvm_tools_install_triggered')
|
||||||
# TODO: replace with boot from device
|
# TODO: replace with boot from device
|
||||||
|
Loading…
Reference in New Issue
Block a user