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 | if (!backend) { | ||||
175 | return; // loadBackend() already set error and called emitResult() for us | ||||
176 | } | ||||
174 | d->config = backend->config()->clone(); | 177 | d->config = backend->config()->clone(); | ||
175 | d->loadEdid(backend); | 178 | d->loadEdid(backend); | ||
176 | emitResult(); | 179 | emitResult(); | ||
177 | } else { | 180 | } else { | ||
178 | d->requestBackend(); | 181 | d->requestBackend(); | ||
179 | } | 182 | } | ||
180 | } | 183 | } | ||
181 | 184 | | |||
Show All 19 Lines |