Guard kglobalaccel against QApplication
Review Request #122590 - Created Feb. 16, 2015 and submitted
|Kai Uwe Broulik|
KGlobalAccelPrivate uses a QWidget for some magic witchcraft which blows up in case there is no QApplication (kscreenlocker_greet). This guards against it.
screenlocker no longer blows up when adding the mpris dataengine which does kglobalaccel stuff but I have no idea whether this is the right approach and what the widget is actually for.
we should investigate whether the argument for using a widget is still valid. The argument is that destroyed gives a QObject and not a QAction. but this can be easily worked around by connecting to a lambda and capturing the QAction.