Only allow the delete item command in the project tree if it has focus
This commit is contained in:
@@ -419,6 +419,9 @@ class GuiProjectTree(QTreeWidget):
|
||||
logger.error("No project open")
|
||||
return False
|
||||
|
||||
if not self.hasFocus():
|
||||
return False
|
||||
|
||||
if tHandle is None:
|
||||
tHandle = self.getSelectedHandle()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user