diff options
author | fahim-oscad | 2016-04-04 16:59:25 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-04 16:59:25 +0530 |
commit | 705a0be005d9be0a3a81a4f58e4b5c92e586a4c9 (patch) | |
tree | b94d6ecdbf95262b8da335aa7c650e3e2fc8607b /src/frontEnd/ProjectExplorer.py | |
parent | 92860fe3ba762ff0a690f887319a7d95018b49c9 (diff) | |
parent | 66770d5e2c94cc299424daa67b8bfafcb4d9b8c1 (diff) | |
download | eSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.tar.gz eSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.tar.bz2 eSim-705a0be005d9be0a3a81a4f58e4b5c92e586a4c9.zip |
Merged modification branch into release
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index 6c96227a..146b6d0f 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -47,6 +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.oj_appconfig.dock_dict[self.obj_appconfig.current_project['ProjectName']] = [] def openMenu(self, position): @@ -102,6 +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']] = [] + 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) @@ -139,4 +144,4 @@ class ProjectExplorer(QtGui.QWidget): childnode= QtGui.QTreeWidgetItem(parentnode, [files, os.path.join(self.filePath,files)]) self.obj_appconfig.project_explorer[self.filePath]= filelistnew - json.dump(self.obj_appconfig.project_explorer, open(self.obj_appconfig.dictPath,'w'))
\ No newline at end of file + json.dump(self.obj_appconfig.project_explorer, open(self.obj_appconfig.dictPath,'w')) |