Commit ed238254 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Fix build with Qt < 5.7

QGuiApplication::desktopFileName() is new in Qt 5.7

Differential Revision: https://phabricator.kde.org/D9283
parent b3cc3999
......@@ -514,6 +514,7 @@ KateSessionList KateSessionManager::sessionList()
void KateSessionManager::updateJumpListActions(const QStringList &sessionList)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
KService::Ptr service = KService::serviceByStorageId(qApp->desktopFileName());
if (!service) {
return;
......@@ -568,6 +569,7 @@ void KateSessionManager::updateJumpListActions(const QStringList &sessionList)
}
df->desktopGroup().writeXdgListEntry("Actions", newActions);
#endif
}
//END KateSessionManager
......
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