Drop the hidden column in the project tree that holds the item handle, and use the data setting instead

This commit is contained in:
Veronica K. B. Olsen
2020-06-02 09:23:23 +02:00
parent afdd07b6e9
commit 2bd2c81eae
2 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -1022,7 +1022,7 @@ class GuiMain(QMainWindow):
"""The user double-clicked an item in the tree. If it is a file,
we open it. Otherwise, we do nothing.
"""
tHandle = tItem.text(self.treeView.C_HANDLE)
tHandle = tItem.data(self.treeView.C_NAME, Qt.UserRole)
logger.verbose("User double clicked tree item with handle %s" % tHandle)
nwItem = self.theProject.projTree[tHandle]
if nwItem is not None: