diff --git a/kcms/kfontinst/dbus/FontInst.h b/kcms/kfontinst/dbus/FontInst.h --- a/kcms/kfontinst/dbus/FontInst.h +++ b/kcms/kfontinst/dbus/FontInst.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include "Family.h" #include "Folder.h" @@ -155,6 +156,10 @@ QTimer *itsConnectionsTimer, *itsFontListTimer; QSet itsConnections; + + // This is needed because KJob uses an event loop locker internally, + // which would otherwise cause fontinst to quit after the job is done. + QEventLoopLocker loopLocker; }; }