summaryrefslogtreecommitdiff
path: root/src/frontEnd/ProjectExplorer.py
diff options
context:
space:
mode:
authorathulappadan2016-03-22 14:13:43 +0530
committerathulappadan2016-03-22 14:13:43 +0530
commit66770d5e2c94cc299424daa67b8bfafcb4d9b8c1 (patch)
tree1adddad8e20074a48447feab02d254015379060a /src/frontEnd/ProjectExplorer.py
parentd8ce17792eede1cabcf9503c8158e909998e455d (diff)
downloadeSim-66770d5e2c94cc299424daa67b8bfafcb4d9b8c1.tar.gz
eSim-66770d5e2c94cc299424daa67b8bfafcb4d9b8c1.tar.bz2
eSim-66770d5e2c94cc299424daa67b8bfafcb4d9b8c1.zip
Closes all the dock areas while exiting a project
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r--src/frontEnd/ProjectExplorer.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py
index e2091523..146b6d0f 100644
--- a/src/frontEnd/ProjectExplorer.py
+++ b/src/frontEnd/ProjectExplorer.py
@@ -47,7 +47,8 @@ class ProjectExplorer(QtGui.QWidget):
parentnode = QtGui.QTreeWidgetItem(self.treewidget, [pathlist[-1], parents])
for files in children:
childnode = QtGui.QTreeWidgetItem(parentnode, [files, os.path.join(parents,files)])
- self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']] = []
+ self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']] = []
+ self.oj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']] = []
def openMenu(self, position):
@@ -103,7 +104,9 @@ class ProjectExplorer(QtGui.QWidget):
self.textwindow.show()
else:
self.obj_appconfig.current_project["ProjectName"]= str(self.filePath)
- self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']] = []
+ self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']] = []
+ if self.obj_appconfig.current_project['ProjectName'] not in self.obj_appconfig.dock_dict:
+ self.obj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']] = []
def enable_save(self):
self.save.setEnabled(True)