Remove some now redundant checks

This commit is contained in:
Veronica K. B. Olsen
2020-12-21 21:25:04 +01:00
parent d008113eec
commit fa319391c0
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -714,9 +714,6 @@ class GuiProjectTree(QTreeWidget):
return return
tHandle = selItem.data(self.C_NAME, Qt.UserRole) tHandle = selItem.data(self.C_NAME, Qt.UserRole)
if tHandle is None:
return
tItem = self.theProject.projTree[tHandle] tItem = self.theProject.projTree[tHandle]
if tItem is None: if tItem is None:
return return
-3
View File
@@ -1317,9 +1317,6 @@ class GuiMain(QMainWindow):
we open it. Otherwise, we do nothing. we open it. Otherwise, we do nothing.
""" """
tHandle = tItem.data(self.treeView.C_NAME, Qt.UserRole) tHandle = tItem.data(self.treeView.C_NAME, Qt.UserRole)
if tHandle is None:
return
logger.verbose("User double clicked tree item with handle %s" % tHandle) logger.verbose("User double clicked tree item with handle %s" % tHandle)
nwItem = self.theProject.projTree[tHandle] nwItem = self.theProject.projTree[tHandle]
if nwItem is not None: if nwItem is not None: