Permalink
Browse files

Handle all the case of tab closing and clean the code

  • Loading branch information...
1 parent 870cdf7 commit 814dd411a2a0b5ecdd9ef891f42c25feafa3b9b6 @Carreau Carreau committed with fperez Oct 8, 2011
Showing with 157 additions and 168 deletions.
  1. +1 −1 IPython/frontend/qt/console/frontend_widget.py
  2. +156 −167 IPython/frontend/qt/console/qtconsoleapp.py
@@ -407,7 +407,7 @@ def _handle_shutdown_reply(self, msg):
if not self._hidden and not self._is_from_this_session(msg):
if self._local_kernel:
if not msg['content']['restart']:
- sys.exit(0)
+ self.exit_requested.emit(self)
else:
# we just got notified of a restart!
time.sleep(0.25) # wait 1/4 sec to reset
Oops, something went wrong.

0 comments on commit 814dd41

Please sign in to comment.