Changeset View
Changeset View
Standalone View
Standalone View
kcm/config_handler.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 71 | { | |||
---|---|---|---|---|---|
75 | connect(output.data(), &KScreen::Output::isConnectedChanged, | 75 | connect(output.data(), &KScreen::Output::isConnectedChanged, | ||
76 | this, [this, output]() { | 76 | this, [this, output]() { | ||
77 | Q_EMIT outputConnect(output->isConnected()); | 77 | Q_EMIT outputConnect(output->isConnected()); | ||
78 | }); | 78 | }); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | void ConfigHandler::updateInitialConfig() | 81 | void ConfigHandler::updateInitialConfig() | ||
82 | { | 82 | { | ||
83 | m_previousConfig = m_initialConfig->clone(); | ||||
83 | m_initialRetention = getRetention(); | 84 | m_initialRetention = getRetention(); | ||
84 | connect(new GetConfigOperation(), &GetConfigOperation::finished, | 85 | connect(new GetConfigOperation(), &GetConfigOperation::finished, | ||
85 | this, [this](ConfigOperation *op) { | 86 | this, [this](ConfigOperation *op) { | ||
86 | if (op->hasError()) { | 87 | if (op->hasError()) { | ||
87 | return; | 88 | return; | ||
88 | } | 89 | } | ||
89 | m_initialConfig = qobject_cast<GetConfigOperation*>(op)->config(); | 90 | m_initialConfig = qobject_cast<GetConfigOperation*>(op)->config(); | ||
90 | checkNeedsSave(); | 91 | checkNeedsSave(); | ||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |