Commit 30cd501f authored by Michael Pyne's avatar Michael Pyne

systray: Ensure quit from systray also saves config changes.

KStatusNotifierItem's 'maybeQuit' function is more than happy to call
qApp->quit directly even though the standard quit action is available to
be triggered and would do the right thing.

Qt documents you can use aboutToQuit to catch this case, and it does
seem to work.
parent a951caf3
......@@ -120,6 +120,11 @@ JuK::JuK(const QStringList &filesToOpen, QWidget *parent) :
// The system tray quit command will go straight to qApp->quit without calling
// our quit action, so make sure we save config changes no matter how quit is
// called.
connect(qApp, &QCoreApplication::aboutToQuit, this, [this]() { saveConfig(); });
// slotCheckCache loads the cached entries first to populate the collection list
QTimer::singleShot(0, this, SLOT(slotClearOldCovers()));
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