From 40b70ae6f7a83a8a49be073df9f13d5f58aec09a Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Wed, 24 Jun 2015 17:41:47 +0200 Subject: [PATCH] use hint name as documented --- src/plugins/backends/snoretoast/snoretoast.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/backends/snoretoast/snoretoast.cpp b/src/plugins/backends/snoretoast/snoretoast.cpp index 7885e6c..8d58295 100644 --- a/src/plugins/backends/snoretoast/snoretoast.cpp +++ b/src/plugins/backends/snoretoast/snoretoast.cpp @@ -137,7 +137,10 @@ void SnoreToast::slotPrintExitStatus(int, QProcess::ExitStatus) QString SnoreToast::appId(const Application &application) { - QString appID = application.constHints().value("windows_app_id").toString(); + QString appID = application.constHints().value("windows-app-id").toString(); + if (appID.isEmpty()) { + appID = application.constHints().value("windows_app_id").toString(); + } if (appID.isEmpty()) { appID = QString("%1.%2.SnoreToast").arg(qApp->organizationName(), qApp->applicationName()).remove(" "); }