Fix test and revealed bug in main code

This commit is contained in:
Veronica K. B. Olsen
2021-02-27 17:00:17 +01:00
parent bfa8f97e7e
commit d3eabd8d8f
2 changed files with 20 additions and 16 deletions
+2 -2
View File
@@ -388,10 +388,10 @@ class GuiProjectEditStatus(QWidget):
"""
selItem = self._getSelectedItem()
if selItem is not None:
iRow = self.listBox.indexFromItem(selItem)
iRow = self.listBox.indexOfTopLevelItem(selItem)
selIdx = selItem.data(0, Qt.UserRole)
if self.colCounts[selIdx] == 0:
self.listBox.takeItem(iRow)
self.listBox.takeTopLevelItem(iRow)
self.colChanged = True
else:
self.theParent.makeAlert(