add delay before reinit confirmation

required to mitigate false positives due to threaded init code

REVIEW: 104799
This commit is contained in:
Thomas Lübking 2012-04-30 22:08:42 +02:00
parent d6209471e8
commit 75b6a04732
2 changed files with 5 additions and 1 deletions

View file

@ -573,7 +573,10 @@ void KWinCompositingConfig::save()
if (m_showConfirmDialog) {
m_showConfirmDialog = false;
showConfirmDialog(advancedChanged);
if (advancedChanged)
QTimer::singleShot(1000, this, SLOT(confirmReInit()));
else
showConfirmDialog(false);
}
}

View file

@ -75,6 +75,7 @@ public slots:
void initEffectSelector();
private slots:
void confirmReInit() { showConfirmDialog(true); }
void rearmGlSupport();
void suggestGraphicsSystem();
void toogleSmoothScaleUi(int compositingType);