Add wait cursor during preset loading.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Apr 2010 14:44:00 +0000 (14:44 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Apr 2010 14:44:00 +0000 (14:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3484 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BRoutePage.py

index d5e27b5a327b60fd6219e57fd9e70e556cbc1d40..ccd0eff05a7a0f8073971fa6b0ccedf480f0494d 100644 (file)
@@ -96,7 +96,11 @@ class BRoutePage(BWizardPage):
         Overload of the BWizardPage reloadData method.
         """
         preset = self.projectInfo('PROJECT_PRESET')
-        self.project.loadProjectFromPreset(preset)
+        try:
+            QApplication.instance().setOverrideCursor(Qt.WaitCursor)
+            self.project.loadProjectFromPreset(preset)
+        finally:
+            QApplication.instance().restoreOverrideCursor()
 
     ####