Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
plasma5-pk-updates.8133
0001-Add-DefaultEvent-flag-to-fix-notification-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Add-DefaultEvent-flag-to-fix-notification-for-relogi.patch of Package plasma5-pk-updates.8133
From 0ad7ca59867a25dcfc8fd705d2b3c88fa191800b Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Thu, 14 Sep 2017 21:00:14 +0200 Subject: [PATCH] Add DefaultEvent flag to fix notification for relogin/restart Summary: This flag is necessary is no notifyrc for the given appName exists. Otherwise the notification is silently discarded. Test Plan: Added call to onRestartRequired somewhere more easily reachable, without this patch no notification appears. With this patch, a notification appears. Reviewers: #plasma, lukas, jgrulich Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D7825 --- src/declarative/pkupdates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/pkupdates.cpp b/src/declarative/pkupdates.cpp index 910c331..ce46df8 100644 --- a/src/declarative/pkupdates.cpp +++ b/src/declarative/pkupdates.cpp @@ -419,7 +419,7 @@ void PkUpdates::onErrorCode(PackageKit::Transaction::Error error, const QString void PkUpdates::onRequireRestart(PackageKit::Transaction::Restart type, const QString &packageID) { if (type == PackageKit::Transaction::RestartSystem || type == PackageKit::Transaction::RestartSession) { - KNotification *notification = new KNotification(QLatin1String("notification"), KNotification::Persistent); + KNotification *notification = new KNotification(QLatin1String("notification"), KNotification::Persistent | KNotification::DefaultEvent); notification->setPixmap(KIconLoader::global()->loadIcon("system-software-update", KIconLoader::Desktop)); if (type == PackageKit::Transaction::RestartSystem) { notification->setActions(QStringList{QLatin1String("Restart")}); -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor