From a24166f72fbd2a3f66d49e26e7b7eb755c9fd99a Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 29 May 2019 13:47:02 +0200 Subject: [PATCH] [Notifications] Check proper group for show popups in dnd mode setting It checked the wrong one resulting in the setting not being written. BUG: 407534 FIXED-IN: 5.16.0 Differential Revision: https://phabricator.kde.org/D21475 --- libnotificationmanager/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnotificationmanager/settings.cpp b/libnotificationmanager/settings.cpp index 006b1ea08..6ce211466 100644 --- a/libnotificationmanager/settings.cpp +++ b/libnotificationmanager/settings.cpp @@ -105,7 +105,7 @@ void Settings::Private::setGroupBehavior(KConfigGroup &group, const Settings::No } const bool showPopupsInDndMode = behavior.testFlag(Settings::ShowPopupsInDoNotDisturbMode); - if (!showPopupsInDndMode && !group.hasDefault("ShowPopups")) { + if (!showPopupsInDndMode && !group.hasDefault("ShowPopupsInDndMode")) { group.revertToDefault("ShowPopupsInDndMode", KConfigBase::Notify); } else { group.writeEntry("ShowPopupsInDndMode", showPopupsInDndMode, KConfigBase::Notify);