Permalink
Browse files

Make cancel in the close dialog behave right. Triggers event.ignore()…

… when

canceling
  • Loading branch information...
1 parent 12e9069 commit e098e43a69f20b3064d552f731892e436527ec3c @jenshnielsen committed Oct 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/frontend/qt/console/mainwindow.py
View
4 IPython/frontend/qt/console/mainwindow.py
@@ -835,13 +835,13 @@ def closeEvent(self, event):
reply = okay
if reply == cancel:
+ event.ignore()
return
if reply == okay:
while self.tab_widget.count() >= 1:
# prevent further confirmations:
widget = self.active_frontend
widget._confirm_exit = False
self.close_tab(widget)
-
- event.accept()
+ event.accept()

0 comments on commit e098e43

Please sign in to comment.