Only accept folder setup page if overrideLocalDir is set.

Fix for #5383.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2023-02-01 19:58:45 +01:00 committed by Matthieu Gallien
parent e5eac81950
commit 9101e0a7f8

View file

@ -195,12 +195,14 @@ void OwncloudAdvancedSetupPage::initializePage()
}
if (Theme::instance()->forceOverrideServerUrl()) {
QTimer::singleShot(0, this, [this]() {
connect(_ocWizard, &QDialog::accepted, []() {
ConfigFile cfg;
ConfigFile cfg;
connect(_ocWizard, &QDialog::accepted, [&]() {
cfg.setOverrideServerUrl({});
cfg.setOverrideLocalDir({});
});
_ocWizard->accept();
if (!cfg.overrideLocalDir().isEmpty()) {
_ocWizard->accept();
}
});
}
}