Remove some now redundant checks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user