Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/kcm_kscreen.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | |||||
113 | void KCMKScreen::save() | 113 | void KCMKScreen::save() | ||
114 | { | 114 | { | ||
115 | qCDebug(KSCREEN_KCM) << "Saving."; | 115 | qCDebug(KSCREEN_KCM) << "Saving."; | ||
116 | 116 | | |||
117 | if (!mKScreenWidget) { | 117 | if (!mKScreenWidget) { | ||
118 | return; | 118 | return; | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | mKScreenWidget->saveControls(); | ||||
121 | const KScreen::ConfigPtr &config = mKScreenWidget->currentConfig(); | 122 | const KScreen::ConfigPtr &config = mKScreenWidget->currentConfig(); | ||
122 | 123 | | |||
123 | bool atLeastOneEnabledOutput = false; | 124 | bool atLeastOneEnabledOutput = false; | ||
124 | Q_FOREACH(const KScreen::OutputPtr &output, config->outputs()) { | 125 | Q_FOREACH(const KScreen::OutputPtr &output, config->outputs()) { | ||
125 | KScreen::ModePtr mode = output->currentMode(); | 126 | KScreen::ModePtr mode = output->currentMode(); | ||
126 | 127 | | |||
127 | if (output->isEnabled()) { | 128 | if (output->isEnabled()) { | ||
128 | atLeastOneEnabledOutput = true; | 129 | atLeastOneEnabledOutput = true; | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |