Skip to content

Commit

Permalink
Reorder alert county settings initialization to ensure county name di…
Browse files Browse the repository at this point in the history
…splays on startup
  • Loading branch information
dpaulat committed Dec 8, 2023
1 parent f143186 commit 2f62319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scwx-qt/source/scwx/qt/ui/settings_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,10 +941,6 @@ void SettingsDialogImpl::SetupAudioTab()
alertAudioLongitude_.SetResetButton(
self_->ui->resetAlertAudioLongitudeButton);

alertAudioCounty_.SetSettingsVariable(audioSettings.alert_county());
alertAudioCounty_.SetEditWidget(self_->ui->alertAudioCountyLineEdit);
alertAudioCounty_.SetResetButton(self_->ui->resetAlertAudioCountyButton);

auto alertAudioLayout =
static_cast<QGridLayout*>(self_->ui->alertAudioGroupBox->layout());

Expand Down Expand Up @@ -1033,6 +1029,10 @@ void SettingsDialogImpl::SetupAudioTab()
self_->ui->alertAudioCountyLabel->setText(
QString::fromStdString(countyName));
});

alertAudioCounty_.SetSettingsVariable(audioSettings.alert_county());
alertAudioCounty_.SetEditWidget(self_->ui->alertAudioCountyLineEdit);
alertAudioCounty_.SetResetButton(self_->ui->resetAlertAudioCountyButton);
}

void SettingsDialogImpl::SetupTextTab()
Expand Down

0 comments on commit 2f62319

Please sign in to comment.