Fix test and revealed bug in main code

This commit is contained in:
Veronica K. B. Olsen committed 2021-02-27 17:00:17 +01:00
1 parent bfa8f97e7e
commit d3eabd8d8f
2 files changed
+20 -16

No files matched your search

+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(