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()
####