Move dir only if exists to avoid error message.
[bertos.git] / wizard / BModulePage.py
index 38bc8a531183b6673ee7457838c9ec9ee63fbc1c..8daa8d206e25c85bf14e058dcac57eed01c1d0b5 100644 (file)
@@ -222,6 +222,7 @@ class BModulePage(BWizardPage):
         """
         Fills the module tree with the module entries separated in categories.
         """
+        self.pageContent.moduleTree.clear()
         modules = self.projectInfo("MODULES")
         if not modules:
             return
@@ -496,4 +497,4 @@ class QControlGroup(QObject):
         Slot called when the value of one of the stored widget changes. It emits
         another signal.
         """
-        self.emit(SIGNAL("stateChanged"), id)
\ No newline at end of file
+        self.emit(SIGNAL("stateChanged"), id)