From: duplo Date: Tue, 20 Apr 2010 14:44:00 +0000 (+0000) Subject: Add wait cursor during preset loading. X-Git-Tag: 2.5.0~424 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5d1e5edc913578444098feaaffc5756f9460f912;p=bertos.git Add wait cursor during preset loading. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3484 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BRoutePage.py b/wizard/BRoutePage.py index d5e27b5a..ccd0eff0 100644 --- a/wizard/BRoutePage.py +++ b/wizard/BRoutePage.py @@ -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() ####