Merge remote-tracking branch 'origin/pr/224'
* origin/pr/224: Handle deleting in VM Settings without silent fails
This commit is contained in:
		
						commit
						20da3a5854
					
				| @ -618,8 +618,17 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog): | |||||||
| 
 | 
 | ||||||
|         if ok and answer == self.vm.name: |         if ok and answer == self.vm.name: | ||||||
|             thread = common_threads.RemoveVMThread(self.vm) |             thread = common_threads.RemoveVMThread(self.vm) | ||||||
|  |             thread.finished.connect(self.clear_threads) | ||||||
|  |             self.threads_list.append(thread) | ||||||
|  | 
 | ||||||
|  |             self.progress = QtWidgets.QProgressDialog( | ||||||
|  |                 self.tr("Deleting Qube..."), "", 0, 0) | ||||||
|  |             self.progress.setCancelButton(None) | ||||||
|  |             self.progress.setModal(True) | ||||||
|  |             self.thread_closes = True | ||||||
|  |             self.progress.show() | ||||||
|  | 
 | ||||||
|             thread.start() |             thread.start() | ||||||
|             self.done(0) |  | ||||||
| 
 | 
 | ||||||
|         elif ok: |         elif ok: | ||||||
|             QtWidgets.QMessageBox.warning( |             QtWidgets.QMessageBox.warning( | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki