Skip to content

Fix connection lifetime issue

ivan tkachenko requested to merge work/ratijas/connection-crash into master

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

Edited by ivan tkachenko

Merge request reports