kdeui: clear pending changes from KNotificationConfigWidget::setNotification()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-15 00:14:13 +02:00
parent 2bee5fa7e2
commit 20c1130788

View file

@ -203,6 +203,7 @@ void KNotificationConfigWidget::save()
void KNotificationConfigWidget::setNotification(const QString &notification)
{
d->treewidget->clear();
d->notificationchanges.clear();
const QString notifyconfig = KStandardDirs::locate("config", "notifications/" + notification + ".notifyrc");
if (notifyconfig.isEmpty()) {