Skip to content

Commit

Permalink
Avoid quitting when closing KDE file dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Apr 16, 2024
1 parent 6bccc72 commit 91be21a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/changelog.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Fixed

- `input.insert_mode.auto_load` sometimes not triggering due to a race
condition.
- Worked around qutebrowser quitting when closing a KDE file dialog due to a Qt
bug.
[[v3.1.1]]
v3.1.1 (unreleased)
Expand Down
3 changes: 3 additions & 0 deletions qutebrowser/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def init(*, args: argparse.Namespace) -> None:
crashsignal.crash_handler.init_faulthandler()

objects.qapp.setQuitOnLastWindowClosed(False)
# WORKAROUND for KDE file dialogs / QEventLoopLocker quitting:
# https://bugreports.qt.io/browse/QTBUG-124386
objects.qapp.setQuitLockEnabled(False)
quitter.instance.shutting_down.connect(QApplication.closeAllWindows)

_init_icon()
Expand Down

0 comments on commit 91be21a

Please sign in to comment.