Commit 3fb6eb43 authored by Xuetian Weng's avatar Xuetian Weng Committed by Nate Graham
Browse files

KCM: Workaround unknown Qt issue that causes the revert dialog to be invisible

A better long-term fix is being discussed in
#4.

BUG: 449560
FIXED-IN: 5.24.1


(cherry picked from commit ace23390)
parent 2a22b96d
Pipeline #137327 passed with stage
in 2 minutes and 1 second
......@@ -173,7 +173,9 @@ void KCMKScreen::doSave(bool force)
m_configHandler->updateInitialData();
if (!m_settingsReverted && m_configHandler->shouldTestNewSettings()) {
Q_EMIT showRevertWarning();
QTimer::singleShot(100, this, [this]() {
Q_EMIT showRevertWarning();
});
} else {
m_settingsReverted = false;
m_stopUpdatesFromBackend = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment