Improve project tree test coverage

This commit is contained in:
Veronica Berglyd Olsen
2022-06-11 14:40:03 +02:00
parent f0bef18b63
commit 025463a28e
2 changed files with 91 additions and 4 deletions
+3 -2
View File
@@ -985,6 +985,7 @@ class GuiProjectTree(QTreeWidget):
if tItem is None:
logger.debug("No item found")
return False
ctxMenu = QMenu()
@@ -998,7 +999,7 @@ class GuiProjectTree(QTreeWidget):
self.tr("Empty Trash"), lambda: self.emptyTrash()
)
ctxMenu.exec_(self.viewport().mapToGlobal(clickPos))
return
return True
# Document Actions
# ================
@@ -1074,7 +1075,7 @@ class GuiProjectTree(QTreeWidget):
ctxMenu.exec_(self.viewport().mapToGlobal(clickPos))
return
return True
##
# Events