From 34adc75752127845964825db47f938284fafee79 Mon Sep 17 00:00:00 2001 From: donoban Date: Sun, 31 Mar 2019 20:04:04 +0200 Subject: [PATCH] Moved busy_cursor() inside save_changes() --- qubesmanager/settings.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 3b65762..a2c6acf 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -264,7 +264,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog): self.save_and_apply() def save_changes(self): - error = self.__save_changes__() + with common_threads.busy_cursor(): + error = self.__save_changes__() if error: QtGui.QMessageBox.warning( @@ -274,12 +275,10 @@ 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() + self.save_changes() def save_and_apply(self): - with common_threads.busy_cursor(): - self.save_changes() + self.save_changes() self.done(0) def __save_changes__(self):