X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBModulePage.py;h=6e40c7f128d69831c1242fed721374b43ab708c3;hb=ffce2706246cde667f4a954dde4312d94b212792;hp=ad6fee500fa3111deb5cfcb95f6fc5289f708970;hpb=3f3f2c46a3cadf8383ae18a5f22a41a5748298e5;p=bertos.git diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index ad6fee50..6e40c7f1 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -81,17 +81,20 @@ class BModulePage(BWizardPage): self.connect(self.pageContent.moduleTree, SIGNAL("itemPressed(QTreeWidgetItem*, int)"), self.moduleClicked) self.connect(self.pageContent.moduleTree, SIGNAL("itemChanged(QTreeWidgetItem*, int)"), self.dependencyCheck) - def reloadData(self): + def reloadData(self, previous_id=None): """ Overload of the BWizardPage reloadData method. """ - try: - QApplication.instance().setOverrideCursor(Qt.WaitCursor) - self.setupUi() - self.loadModuleData() - self.fillModuleTree() - finally: - QApplication.instance().restoreOverrideCursor() + # Check if the user are approaching this page from the previous or the + # next one. + if previous_id is None or previous_id < self.wizard().currentId(): + try: + QApplication.instance().setOverrideCursor(Qt.WaitCursor) + self.setupUi() + self.loadModuleData() + self.fillModuleTree() + finally: + QApplication.instance().restoreOverrideCursor() ####