]> gitweb.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
qt: let Cmd+Q close the launcher on macOS
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 7 Jul 2026 06:39:11 +0000 (23:39 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 7 Jul 2026 21:00:59 +0000 (14:00 -0700)
commit5c8db3bb91f7183a3ab3d04465c5e5ce265ee845
tree91c20fd03972a2efbe64f5491824a1cfa77dbfbe
parent2fa334e08ab722a0b0a5496ccdbcc82d12c7bfe8
qt: let Cmd+Q close the launcher on macOS

The launcher runs as a modal QDialog::exec() with no application event
loop and no menu bar. Escape works because QDialog maps it to reject()
internally, but macOS disables the auto-generated application menu (and
its Cmd+Q) while a modal session is active, so Cmd+Q was swallowed by
the OS and never closed the dialog. Bind QKeySequence::Quit directly on
the dialog so it is handled inside the modal loop, mirroring Escape.
od-unix/qt/launcher.cpp