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:
Martchus 2022-10-18 22:21:27 +02:00
parent 8e652217d8
commit 9fd0dd3201
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}