mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Only accept folder setup page if overrideLocalDir is set.
Fix for #5383. Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
e5eac81950
commit
9101e0a7f8
1 changed files with 5 additions and 3 deletions
|
@ -195,12 +195,14 @@ void OwncloudAdvancedSetupPage::initializePage()
|
||||||
}
|
}
|
||||||
if (Theme::instance()->forceOverrideServerUrl()) {
|
if (Theme::instance()->forceOverrideServerUrl()) {
|
||||||
QTimer::singleShot(0, this, [this]() {
|
QTimer::singleShot(0, this, [this]() {
|
||||||
connect(_ocWizard, &QDialog::accepted, []() {
|
ConfigFile cfg;
|
||||||
ConfigFile cfg;
|
connect(_ocWizard, &QDialog::accepted, [&]() {
|
||||||
cfg.setOverrideServerUrl({});
|
cfg.setOverrideServerUrl({});
|
||||||
cfg.setOverrideLocalDir({});
|
cfg.setOverrideLocalDir({});
|
||||||
});
|
});
|
||||||
_ocWizard->accept();
|
if (!cfg.overrideLocalDir().isEmpty()) {
|
||||||
|
_ocWizard->accept();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue