Commit d3b99279 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Set up the key cache before the system tray icon

The system tray icon needs to listen to the key cache. Therefore, we need
to make sure that we have a persistent key cache, i.e. the shared
pointer that KleopatraApplication keeps for the entire runtime of the
application.
parent 010a83a6
......@@ -100,7 +100,7 @@ public:
delete sysTray;
#endif
}
void init()
void setUpSysTrayIcon()
{
KDAB_SET_OBJECT_NAME(readerStatus);
#ifndef QT_NO_SYSTEMTRAYICON
......@@ -221,9 +221,9 @@ void KleopatraApplication::init()
QWindowsWindowFunctions::setWindowActivationBehavior(
QWindowsWindowFunctions::AlwaysActivateWindow);
#endif
d->init();
add_resources();
d->setupKeyCache();
d->setUpSysTrayIcon();
d->setUpFilterManager();
d->setupLogging();
#ifndef QT_NO_SYSTEMTRAYICON
......
Markdown is supported
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