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