From 4992bfa8ef5ba554c762d78f3fcd7c54ac0f47a3 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 25 Jan 2021 16:53:21 +0100 Subject: [PATCH] Ensure the right radio is selected when selective sync is picked This got broken previously when trying to reconcile during a cherry-pick. This also repairs the case when the theme tells us the default is to not select anything (not that we're using this right now but in case we'd like to brand this). Signed-off-by: Kevin Ottens --- src/gui/wizard/owncloudadvancedsetuppage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/wizard/owncloudadvancedsetuppage.cpp b/src/gui/wizard/owncloudadvancedsetuppage.cpp index a641b75b5..6053f04e8 100644 --- a/src/gui/wizard/owncloudadvancedsetuppage.cpp +++ b/src/gui/wizard/owncloudadvancedsetuppage.cpp @@ -149,6 +149,7 @@ void OwncloudAdvancedSetupPage::initializePage() if (Theme::instance()->wizardSelectiveSyncDefaultNothing()) { _selectiveSyncBlacklist = QStringList("/"); + setRadioChecked(_ui.rSelectiveSync); QTimer::singleShot(0, this, &OwncloudAdvancedSetupPage::slotSelectiveSyncClicked); } @@ -367,6 +368,9 @@ void OwncloudAdvancedSetupPage::slotSelectiveSyncClicked() if (updateBlacklist) { if (!_selectiveSyncBlacklist.isEmpty()) { + _ui.rSelectiveSync->blockSignals(true); + setRadioChecked(_ui.rSelectiveSync); + _ui.rSelectiveSync->blockSignals(false); auto s = dlg->estimatedSize(); if (s > 0) { _ui.lSelectiveSyncSizeLabel->setText(tr("(%1)").arg(Utility::octetsToString(s))); -- 2.30.2