Fixed creating new project, opening and saving of projects.
This commit is contained in:
+15
-1
@@ -39,9 +39,14 @@ class GuiDocTree(QTreeWidget):
|
||||
self.debugGUI = self.mainConf.debugGUI
|
||||
self.theParent = theParent
|
||||
self.theProject = theProject
|
||||
self.theMap = {}
|
||||
|
||||
# Tree Settings
|
||||
self.theMap = None
|
||||
self.orphRoot = None
|
||||
|
||||
self.clearTree()
|
||||
|
||||
# Build GUI
|
||||
self.setIconSize(QSize(13,13))
|
||||
self.setExpandsOnDoubleClick(True)
|
||||
self.setIndentation(13)
|
||||
@@ -67,6 +72,15 @@ class GuiDocTree(QTreeWidget):
|
||||
|
||||
return
|
||||
|
||||
def clearTree(self):
|
||||
|
||||
self.clear()
|
||||
|
||||
self.theMap = {}
|
||||
self.orphRoot = None
|
||||
|
||||
return
|
||||
|
||||
def newTreeItem(self, itemType, itemClass):
|
||||
|
||||
pHandle = self.getSelectedHandle()
|
||||
|
||||
Reference in New Issue
Block a user