diff --git a/IPython/frontend/qt/console/mainwindow.py b/IPython/frontend/qt/console/mainwindow.py index 8a8cbf4..34a3e5e 100644 --- a/IPython/frontend/qt/console/mainwindow.py +++ b/IPython/frontend/qt/console/mainwindow.py @@ -835,6 +835,7 @@ class MainWindow(QtGui.QMainWindow): reply = okay if reply == cancel: + event.ignore() return if reply == okay: while self.tab_widget.count() >= 1: @@ -842,6 +843,5 @@ class MainWindow(QtGui.QMainWindow): widget = self.active_frontend widget._confirm_exit = False self.close_tab(widget) - - event.accept() + event.accept()