Moved busy_cursor() inside save_changes()
This commit is contained in:
parent
c85d6e4e8b
commit
34adc75752
@ -264,6 +264,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
self.save_and_apply()
|
||||
|
||||
def save_changes(self):
|
||||
with common_threads.busy_cursor():
|
||||
error = self.__save_changes__()
|
||||
|
||||
if error:
|
||||
@ -274,11 +275,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
self.tr("ERROR: {0}").format('\n'.join(error)))
|
||||
|
||||
def apply(self):
|
||||
with common_threads.busy_cursor():
|
||||
self.save_changes()
|
||||
|
||||
def save_and_apply(self):
|
||||
with common_threads.busy_cursor():
|
||||
self.save_changes()
|
||||
self.done(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user