Changeset View
Changeset View
Standalone View
Standalone View
src/getconfigoperation.cpp
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Line(s) | 164 | { | |||
---|---|---|---|---|---|
166 | return d->config; | 166 | return d->config; | ||
167 | } | 167 | } | ||
168 | 168 | | |||
169 | void GetConfigOperation::start() | 169 | void GetConfigOperation::start() | ||
170 | { | 170 | { | ||
171 | Q_D(GetConfigOperation); | 171 | Q_D(GetConfigOperation); | ||
172 | if (BackendManager::instance()->method() == BackendManager::InProcess) { | 172 | if (BackendManager::instance()->method() == BackendManager::InProcess) { | ||
173 | auto backend = d->loadBackend(); | 173 | auto backend = d->loadBackend(); | ||
174 | d->config = backend->config(); | 174 | d->config = backend->config()->clone(); | ||
175 | KScreen::BackendManager::instance()->setConfig(d->config); | | |||
176 | d->loadEdid(backend); | 175 | d->loadEdid(backend); | ||
177 | emitResult(); | 176 | emitResult(); | ||
178 | } else { | 177 | } else { | ||
179 | d->requestBackend(); | 178 | d->requestBackend(); | ||
180 | } | 179 | } | ||
181 | } | 180 | } | ||
182 | 181 | | |||
183 | void GetConfigOperationPrivate::loadEdid(KScreen::AbstractBackend* backend) | 182 | void GetConfigOperationPrivate::loadEdid(KScreen::AbstractBackend* backend) | ||
Show All 19 Lines |