Don't allow continuing wizard if selected option is hidden
The selected option might be hidden if it was previously selected but then became inavailable after running the setup detection again.
This commit is contained in:
parent
8e652217d8
commit
9fd0dd3201
|
@ -740,7 +740,7 @@ void MainConfigWizardPage::handleSelectionChanged()
|
|||
auto configSelected = false;
|
||||
for (auto *const option : std::initializer_list<QRadioButton *>{ m_ui->cfgCurrentlyRunningRadioButton, m_ui->cfgLauncherExternalRadioButton,
|
||||
m_ui->cfgLauncherBuiltInRadioButton, m_ui->cfgSystemdUserUnitRadioButton, m_ui->cfgSystemdSystemUnitRadioButton }) {
|
||||
if ((configSelected = option->isChecked())) {
|
||||
if ((configSelected = !option->isHidden() && option->isChecked())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue