Improved validation for ARRL RTTY RU and FD exchange fields

Validation  in  "Settings->Advanced"  only  applies  if  the  specific
special operations mode is enabled.
This commit is contained in:
Bill Somerville 2019-01-10 15:13:56 +00:00
parent e01c4fb4b3
commit d17efce7a1

View File

@ -1781,7 +1781,7 @@ bool Configuration::impl::validate ()
return false;
}
if (ui_->rbField_Day-> isChecked () &&
if (ui_->rbField_Day->isEnabled () && ui_->rbField_Day->isChecked () &&
!ui_->Field_Day_Exchange->hasAcceptableInput ())
{
for (auto * parent = ui_->Field_Day_Exchange->parentWidget (); parent; parent = parent->parentWidget ())
@ -1799,7 +1799,7 @@ bool Configuration::impl::validate ()
return false;
}
if (ui_->rbRTTY_Roundup-> isChecked () &&
if (ui_->rbRTTY_Roundup->isEnabled () && ui_->rbRTTY_Roundup->isChecked () &&
!ui_->RTTY_Exchange->hasAcceptableInput ())
{
for (auto * parent = ui_->RTTY_Exchange->parentWidget (); parent; parent = parent->parentWidget ())