Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 88 | { | |||
---|---|---|---|---|---|
135 | Generator::self()->setCurrentConfig(m_monitoredConfig); | 135 | Generator::self()->setCurrentConfig(m_monitoredConfig); | ||
136 | monitorConnectedChange(); | 136 | monitorConnectedChange(); | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | void KScreenDaemon::doApplyConfig(const KScreen::ConfigPtr& config) | 139 | void KScreenDaemon::doApplyConfig(const KScreen::ConfigPtr& config) | ||
140 | { | 140 | { | ||
141 | qCDebug(KSCREEN_KDED) << "doApplyConfig()"; | 141 | qCDebug(KSCREEN_KDED) << "doApplyConfig()"; | ||
142 | setMonitorForChanges(false); | 142 | setMonitorForChanges(false); | ||
143 | KScreen::ConfigMonitor::instance()->removeConfig(m_monitoredConfig); | ||||
144 | m_monitoredConfig = config; | ||||
145 | KScreen::ConfigMonitor::instance()->addConfig(m_monitoredConfig); | ||||
143 | 146 | | |||
144 | connect(new KScreen::SetConfigOperation(config), &KScreen::SetConfigOperation::finished, this, | 147 | connect(new KScreen::SetConfigOperation(config), &KScreen::SetConfigOperation::finished, this, | ||
145 | [&]() { | 148 | [&]() { | ||
146 | qCDebug(KSCREEN_KDED) << "Config applied"; | 149 | qCDebug(KSCREEN_KDED) << "Config applied"; | ||
147 | setMonitorForChanges(true); | 150 | setMonitorForChanges(true); | ||
148 | }); | 151 | }); | ||
149 | } | 152 | } | ||
150 | 153 | | |||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |