Commits

Kimmo Varis committed c5587f3

Emit signals to update the treeview when adding new errors.

Comments (0)

Files changed (1)

src/resultstreemodel.py

         self.rootItem = resultstreeitem.TreeItem(None, "ALL", None)
         self.parents = {0 : self.rootItem}
         
-        self.setupModelData()
+        #self.setupModelData()
 
     def columnCount(self, parent=None):
         if parent and parent.isValid():
     def addError(self, error):
         self.errors.append(error)
         self.internalAddError(error)
+
+        # Emit signals to update the UI
+        self.layoutChanged.emit()
+        self.dataChanged.emit(self.createIndex(0, 0),
+                self.createIndex(self.rowCount(), self.columnCount()))