summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahim-oscad2016-04-05 11:46:18 +0530
committerfahim-oscad2016-04-05 11:46:18 +0530
commit2723728ccec86ddfd801c10519a0079d0150d68f (patch)
tree6f0029b2698fd51c183b3fed33173f6392aa161d /src
parentcc11dd44bac3b598fc5f831de5d9fc62f72c63ad (diff)
downloadeSim-2723728ccec86ddfd801c10519a0079d0150d68f.tar.gz
eSim-2723728ccec86ddfd801c10519a0079d0150d68f.tar.bz2
eSim-2723728ccec86ddfd801c10519a0079d0150d68f.zip
Bug fixing: Modified code for closing external window from close project button
Diffstat (limited to 'src')
-rwxr-xr-xsrc/frontEnd/Application.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index a3438591..1008c7b5 100755
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -188,7 +188,10 @@ class Application(QtGui.QMainWindow):
pass
else:
for pid in self.obj_appconfig.proc_dict[self.obj_appconfig.current_project['ProjectName']]:
- os.kill(pid, 9)
+ try:
+ os.kill(pid, 9)
+ except:
+ pass
self.obj_Mainview.obj_dockarea.closeDock()
self.obj_appconfig.current_project['ProjectName'] = None
self.systemTrayIcon.showMessage('Close', 'Current project '+os.path.basename(current_project)+' is Closed.')