https://bugs.kde.org/show_bug.cgi?id=529110
Bug ID: 529110
Summary: Closing a QMessageBox with the window manager leaves
the app blocked by an invisible modal dialog
Classification: Plasma
Product: plasma-integration
Version First 6.8.0
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 198650
--> https://bugs.kde.org/attachment.cgi?id=198650&action=edit
minimal program
Plasma 6.8.3 / plasma-integration 6.8.3 / Qt 6.12.0 / Wayland
I use Audacious. When I open a plugin's About dialog and close it with the
window decoration's close button instead of the dialog's own Close button, the
whole app freezes and doesn't respond to any input. The window manager can't
close it either, I have to kill it.
It's not just Audacious. The attached small program reproduces it too: click
the button, close the message box with the titlebar X, and the main window is
dead right away.
I wrote a minimal program, you can run it like this:
1. Build: g++ -fPIC kde-msgbox-repro.cpp -o repro $(pkg-config --cflags --libs
Qt6Widgets)
2. Run ./repro and click the button
3. Close the message box with the titlebar X
4. The main window no longer accepts any input
With DontUseNativeDialog set on the message box, or with a non-KDE platform
theme, everything works fine.
Cause:
The problem is in KDEPlatformMessageDialogHelper. It shows its own internal
QMessageBox and only forwards buttonClicked. When the window manager closes it,
no button is clicked, so the helper never emits reject(). The app's own
QMessageBox still thinks it's open: invisible, but still application modal, so
it blocks every window.
The app can't work around this itself: it only has its own QMessageBox, the
visible window is created inside the helper.
Looks like a regression from the fix for bug 523039 (6c7be886): before it this
case crashed, now it (surprisingly) hangs.
See the attached patch: emit reject() when the box is closed without a button
click.
Related: bug 524848, bug 523039
--
You are receiving this mail because:
You are watching all bug changes.