Updated configuration tooltip and validation

This commit is contained in:
Jordan Sherer
2018-10-27 12:41:30 -04:00
parent 9010fa07c0
commit 31d80a9b1d
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -1977,7 +1977,8 @@ QStringList splitGroups(QString groupsString, bool filter){
bool Configuration::impl::validate ()
{
if(!Varicode::isValidCallsign(ui_->callsign_line_edit->text(), nullptr)){
auto callsign = ui_->callsign_line_edit->text().trimmed();
if(!Varicode::isValidCallsign(callsign, nullptr) || callsign.startsWith("@")){
MessageBox::critical_message (this, tr ("The callsign format you provided is not supported"));
return false;
}