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

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

View File

@ -240,17 +240,20 @@
<item row="5" column="0">
<widget class="QLabel" name="label_23">
<property name="text">
<string>Groups (comma separated):</string>
<string>Callsign Groups (comma separated):</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="groups_line_edit">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter a comma separated list of callsign groups (e.g., @GROUP/1, @ARES, @RACES, etc). &lt;br/&gt;&lt;br/&gt;Each group behaves similarly to @ALLCALL. Messages that are directed to the group are printed at all participating stations.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string/>
<string>@ALLCALL, ...</string>
</property>
</widget>
</item>