Skip to content

Commit 44c1759

Browse files
authored
Don't call QApplication.setQuitOnLastWindowClosed(False). (#1142)
1 parent 6bf3fe9 commit 44c1759

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ipykernel/eventloops.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,10 @@ def make_qt_app_for_kernel(gui, kernel):
535535
set_qt_api_env_from_gui(gui)
536536

537537
# This import is guaranteed to work now:
538-
from IPython.external.qt_for_kernel import QtCore, QtGui
538+
from IPython.external.qt_for_kernel import QtCore
539539
from IPython.lib.guisupport import get_app_qt4
540540

541541
kernel.app = get_app_qt4([" "])
542-
if isinstance(kernel.app, QtGui.QApplication):
543-
kernel.app.setQuitOnLastWindowClosed(False)
544-
545542
kernel.app.qt_event_loop = QtCore.QEventLoop(kernel.app)
546543

547544

0 commit comments

Comments
 (0)