From 2723728ccec86ddfd801c10519a0079d0150d68f Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Tue, 5 Apr 2016 11:46:18 +0530 Subject: Bug fixing: Modified code for closing external window from close project button --- src/frontEnd/Application.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/frontEnd') 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.') -- cgit