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.
Edited by ivan tkachenko