Updated configuration tooltip and validation
This commit is contained in:
parent
9010fa07c0
commit
31d80a9b1d
@ -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;
|
||||
}
|
||||
|
@ -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><html><head/><body><p>Enter a comma separated list of callsign groups (e.g., @GROUP/1, @ARES, @RACES, etc). <br/><br/>Each group behaves similarly to @ALLCALL. Messages that are directed to the group are printed at all participating stations.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string/>
|
||||
<string>@ALLCALL, ...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user