Block drag and drop for ROOT items on the widget level, and drop the TRASH item type

This commit is contained in:
Veronica Berglyd Olsen
2022-04-23 16:57:13 +02:00
parent d96c8ddf85
commit bd5a14b18e
7 changed files with 18 additions and 35 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class NWProject():
if trashHandle is None:
newItem = NWItem(self)
newItem.setName(trConst(nwLabels.CLASS_NAME[nwItemClass.TRASH]))
newItem.setType(nwItemType.TRASH)
newItem.setType(nwItemType.ROOT)
newItem.setClass(nwItemClass.TRASH)
self.projTree.append(None, None, newItem)
self.projTree.updateItemData(newItem.itemHandle)