aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-11-11 11:31:52 +0100
committerMartin Gräßlin <[email protected]>2016-11-15 07:19:52 +0100
commit75ab998de8df5f91ce8c445b89bd5b9e978f253b (patch)
tree624c1bec8aa407ec93116c7ebce8725c66928459
parenta8fa1626eb9dfc906523ecb026c0c72c3f8bd160 (diff)
[effects] Clean up saving of DesktopGrid config
Summary: The DesktopNameAlignment was once set through the kcfg generated file and once manually. We don't need the manual double save. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3340
-rw-r--r--effects/desktopgrid/desktopgrid_config.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/effects/desktopgrid/desktopgrid_config.cpp b/effects/desktopgrid/desktopgrid_config.cpp
index 6af1cce..54aff9d 100644
--- a/effects/desktopgrid/desktopgrid_config.cpp
+++ b/effects/desktopgrid/desktopgrid_config.cpp
@@ -104,10 +104,6 @@ void DesktopGridEffectConfig::save()
DesktopGridConfig::setDesktopNameAlignment(m_ui->desktopNameAlignmentCombo->itemData(m_ui->desktopNameAlignmentCombo->currentIndex()).toInt());
KCModule::save();
- KConfigGroup conf = EffectsHandler::effectConfig(QStringLiteral("DesktopGrid"));
- conf.writeEntry("DesktopNameAlignment", DesktopGridConfig::desktopNameAlignment());
- conf.sync();
-
OrgKdeKwinEffectsInterface interface(QStringLiteral("org.kde.KWin"),
QStringLiteral("/Effects"),
QDBusConnection::sessionBus());