[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
remotes/origin/bshah/hwcomposer_testing
Martin Gräßlin 9 years ago
parent a8fa1626eb
commit 75ab998de8
  1. 4
      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());

Loading…
Cancel
Save