X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBToolchainPage.py;h=88be219efe4a323743437ac06a47f124054f90b3;hb=2be5d4598fdfee024f3929a110f5f93c751c355c;hp=6239a1d9dd0f1fa9503185b2428a272dde643452;hpb=0b38ba2ac1fe2fc44ee6b417235fdc0f42f65867;p=bertos.git diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 6239a1d9..88be219e 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -155,10 +155,12 @@ class BToolchainPage(BWizardPage): Slot called when the user clicks on the validate button. It starts the toolchain validation procedure for all the toolchains. """ - QApplication.instance().setOverrideCursor(Qt.WaitCursor) - for i in range(self.pageContent.toolchainList.count()): - self.validateToolchain(i) - QApplication.instance().restoreOverrideCursor() + try: + QApplication.instance().setOverrideCursor(Qt.WaitCursor) + for i in range(self.pageContent.toolchainList.count()): + self.validateToolchain(i) + finally: + QApplication.instance().restoreOverrideCursor() ####