Fix checking config again after going back in wizard

This commit is contained in:
Martchus 2023-02-07 18:16:13 +01:00
parent b01f636a33
commit 95d2d4ce1a
1 changed files with 5 additions and 1 deletions

View File

@ -526,9 +526,10 @@ void DetectionWizardPage::initializePage()
} }
if (!m_setupDetection) { if (!m_setupDetection) {
m_setupDetection = &wizard->setupDetection(); m_setupDetection = &wizard->setupDetection();
connect(m_setupDetection, &SetupDetection::done, this, &DetectionWizardPage::continueIfDone);
} }
m_setupDetection->reset(); m_setupDetection->reset();
connect(m_setupDetection, &SetupDetection::done, this, &DetectionWizardPage::continueIfDone);
emit completeChanged(); emit completeChanged();
QTimer::singleShot(0, this, &DetectionWizardPage::tryToConnect); QTimer::singleShot(0, this, &DetectionWizardPage::tryToConnect);
} }
@ -543,6 +544,9 @@ void DetectionWizardPage::cleanupPage()
void DetectionWizardPage::refresh() void DetectionWizardPage::refresh()
{ {
if (m_setupDetection && !m_setupDetection->isDone()) {
return;
}
initializePage(); initializePage();
} }