summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
authorathulappadan2016-03-17 11:41:50 +0530
committerathulappadan2016-03-17 11:41:50 +0530
commiteba6e6ed7860256287a7490b90d2e00fa903cd41 (patch)
tree096720f51c6aff0015b4f92bf5fa7c5e41dfe5ce /src/frontEnd/Application.py
parent47def6faede05c5056d8a9f000f5ae5f9e3da7b9 (diff)
downloadeSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.tar.gz
eSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.tar.bz2
eSim-eba6e6ed7860256287a7490b90d2e00fa903cd41.zip
Closes all external windows while closing a selected project
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-xsrc/frontEnd/Application.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 24e541c3..37fc6942 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -187,6 +187,8 @@ class Application(QtGui.QMainWindow):
if current_project==None:
pass
else:
+ for pid in self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']]:
+ os.kill(pid, 9)
self.obj_appconfig.current_project['ProjectName'] = None
self.systemTrayIcon.showMessage('Close', 'Current project '+os.path.basename(current_project)+' is Closed.')