Skip to content
Verified Commit 8e8ef50b authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

Fix connection lifetime issue

The lack of receiver may cause undefined behavior / segmentation fault
crash if, for example, a KActionCollection is stored as a
Q_GLOBAL_STATIC too and coincidentally gets destructed after the
KGlobalAccel singleton instance.

Note that all other connections in this file use this `q->connect` style
and already have a context object set to `q`.

Test case: Run `plasmoidviewer -a org.kde.plasma.clipboard`. With this
patch is still crashes on exit, but now in a different place.

CCBUG:454854
CCBUG:485386
parent 5edbde87
Pipeline #671963 passed with stage
in 2 minutes and 32 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