diff options
author | athulappadan | 2016-03-17 11:41:50 +0530 |
---|---|---|
committer | athulappadan | 2016-03-17 11:41:50 +0530 |
commit | eba6e6ed7860256287a7490b90d2e00fa903cd41 (patch) | |
tree | 096720f51c6aff0015b4f92bf5fa7c5e41dfe5ce /src/frontEnd/ProjectExplorer.py | |
parent | 47def6faede05c5056d8a9f000f5ae5f9e3da7b9 (diff) | |
download | eSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.tar.gz eSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.tar.bz2 eSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.zip |
Closes all external windows while closing a selected project
Diffstat (limited to 'src/frontEnd/ProjectExplorer.py')
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index 6c96227a..e2091523 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -47,6 +47,7 @@ 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']] = [] def openMenu(self, position): @@ -102,6 +103,7 @@ 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']] = [] def enable_save(self): self.save.setEnabled(True) @@ -139,4 +141,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')) |