use hint name as documented

This commit is contained in:
Patrick von Reth 2015-06-24 17:41:47 +02:00
parent 25646a45e6
commit 40b70ae6f7
1 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,10 @@ void SnoreToast::slotPrintExitStatus(int, QProcess::ExitStatus)
QString SnoreToast::appId(const Application &application) 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()) { if (appID.isEmpty()) {
appID = QString("%1.%2.SnoreToast").arg(qApp->organizationName(), qApp->applicationName()).remove(" "); appID = QString("%1.%2.SnoreToast").arg(qApp->organizationName(), qApp->applicationName()).remove(" ");
} }