[effects/thumbnailaside] Save shortcuts

Summary:
If user selects a shortcut to trigger the effect, that shortcut won't
work after the KCM is closed because we don't save it.

BUG: 400351
FIXED-IN: 5.14.3

Test Plan:
* Specified custom shortcut to trigger the effect;
* Closed the KCM;
* Pressed the shortcut, a thumbnail appeared.

Reviewers: #kwin, graesslin

Reviewed By: #kwin, graesslin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16456
This commit is contained in:
Vlad Zagorodniy 2018-10-27 12:59:23 +03:00
parent e4c399a635
commit 00c9b4c1c9

View file

@ -89,6 +89,7 @@ ThumbnailAsideEffectConfig::~ThumbnailAsideEffectConfig()
void ThumbnailAsideEffectConfig::save() void ThumbnailAsideEffectConfig::save()
{ {
KCModule::save(); KCModule::save();
m_ui->editor->save();
OrgKdeKwinEffectsInterface interface(QStringLiteral("org.kde.KWin"), OrgKdeKwinEffectsInterface interface(QStringLiteral("org.kde.KWin"),
QStringLiteral("/Effects"), QStringLiteral("/Effects"),
QDBusConnection::sessionBus()); QDBusConnection::sessionBus());