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()
|
self.save_and_apply()
|
||||||
|
|
||||||
def save_changes(self):
|
def save_changes(self):
|
||||||
|
with common_threads.busy_cursor():
|
||||||
error = self.__save_changes__()
|
error = self.__save_changes__()
|
||||||
|
|
||||||
if error:
|
if error:
|
||||||
@ -274,11 +275,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
|||||||
self.tr("ERROR: {0}").format('\n'.join(error)))
|
self.tr("ERROR: {0}").format('\n'.join(error)))
|
||||||
|
|
||||||
def apply(self):
|
def apply(self):
|
||||||
with common_threads.busy_cursor():
|
|
||||||
self.save_changes()
|
self.save_changes()
|
||||||
|
|
||||||
def save_and_apply(self):
|
def save_and_apply(self):
|
||||||
with common_threads.busy_cursor():
|
|
||||||
self.save_changes()
|
self.save_changes()
|
||||||
self.done(0)
|
self.done(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user