Wizard: pre-select the right radio button...

... when the wizardSelectiveSyncDefaultNothing branding option is set

Note: bormally the right option is set when the "choose what to sync"
dialog is closed.  So this was only a problem when the dialog was visible
for the first time, the wrong option would be selected underneath.

Issue #6685
This commit is contained in:
Olivier Goffart 2018-08-03 08:53:43 +02:00 committed by Olivier Goffart
parent cf6e8269bf
commit 8ba0b83353

View File

@ -142,6 +142,7 @@ void OwncloudAdvancedSetupPage::initializePage()
if (Theme::instance()->wizardSelectiveSyncDefaultNothing()) {
_selectiveSyncBlacklist = QStringList("/");
setRadioChecked(_ui.rSelectiveSync);
QTimer::singleShot(0, this, &OwncloudAdvancedSetupPage::slotSelectiveSyncClicked);
}