Skip to content
Commit 23b4ff14 authored by Fushan Wen's avatar Fushan Wen
Browse files

🍒WidgetsAskUserActionHandler: create message dialog in the main thread

In Qt, the GUI runs in its own thread and must be accessed from the
main thread. If QWidget is created in a non-main thread, we can use
the QMetaObject::invokeMethod() method to create it in the main thread.
This fixes a crash in plasmashell where there is no active QWidget
window.

BUG: 465454
FIXED-IN: 5.106

(cherry picked from commit 8270470d)
parent b9e5af7b
Pipeline #383099 passed with stage
in 9 minutes and 36 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment