X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFinalPage.py;h=f5d353edfd4e200f90c6bc84afb3028860a35281;hb=2be5d4598fdfee024f3929a110f5f93c751c355c;hp=3f1a9e02d6359dbe0d91a26abc6872702106084a;hpb=0b38ba2ac1fe2fc44ee6b417235fdc0f42f65867;p=bertos.git diff --git a/wizard/BFinalPage.py b/wizard/BFinalPage.py index 3f1a9e02..f5d353ed 100644 --- a/wizard/BFinalPage.py +++ b/wizard/BFinalPage.py @@ -57,9 +57,11 @@ class BFinalPage(BWizardPage): """ Overload of the BWizardPage reloadData method. """ - QApplication.instance().setOverrideCursor(Qt.WaitCursor) - bertos_utils.createBertosProject(self.project()) - QApplication.instance().restoreOverrideCursor() + try: + QApplication.instance().setOverrideCursor(Qt.WaitCursor) + bertos_utils.createBertosProject(self.project()) + finally: + QApplication.instance().restoreOverrideCursor() self._plugin_dict = {} if os.name == "nt": output = self.projectInfo("OUTPUT")