diff options
author | fahim-oscad | 2016-04-05 11:46:18 +0530 |
---|---|---|
committer | fahim-oscad | 2016-04-05 11:46:18 +0530 |
commit | 2723728ccec86ddfd801c10519a0079d0150d68f (patch) | |
tree | 6f0029b2698fd51c183b3fed33173f6392aa161d | |
parent | cc11dd44bac3b598fc5f831de5d9fc62f72c63ad (diff) | |
download | eSim-2723728ccec86ddfd801c10519a0079d0150d68f.tar.gz eSim-2723728ccec86ddfd801c10519a0079d0150d68f.tar.bz2 eSim-2723728ccec86ddfd801c10519a0079d0150d68f.zip |
Bug fixing: Modified code for closing external window from close project button
-rwxr-xr-x | src/frontEnd/Application.py | 5 |
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.') |