From e8b5566c7a7ef4e1729547841b984a9f617a61fc Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 5 Apr 2019 11:42:49 -0400 Subject: [PATCH] Updated callsign and grid configuration to trim whitespace --- Configuration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration.cpp b/Configuration.cpp index ae81d45..6ecc7b9 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -2369,8 +2369,8 @@ void Configuration::impl::accept () Q_ASSERT (audio_output_channel_ <= AudioDevice::Both); auto_switch_bands_ = ui_->auto_switch_bands_check_box->isChecked(); - my_callsign_ = ui_->callsign_line_edit->text ().toUpper(); - my_grid_ = ui_->grid_line_edit->text ().toUpper(); + my_callsign_ = ui_->callsign_line_edit->text ().toUpper().trimmed(); + my_grid_ = ui_->grid_line_edit->text ().toUpper().trimmed(); my_groups_ = splitGroups(ui_->groups_line_edit->text().toUpper().trimmed(), true); auto_whitelist_ = splitCalls(ui_->auto_whitelist_line_edit->text().toUpper().trimmed()); auto_blacklist_ = splitCalls(ui_->auto_blacklist_line_edit->text().toUpper().trimmed());