Skip to content

Commit

Permalink
Bug fixing: Modified code for closing external window from close proj…
Browse files Browse the repository at this point in the history
…ect button
  • Loading branch information
fahim-oscad committed Apr 5, 2016
1 parent cc11dd4 commit 2723728
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/frontEnd/Application.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ def close_project(self):
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.')
Expand Down

0 comments on commit 2723728

Please sign in to comment.