mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-18 11:37:26 -05:00
Preserve user radio aliases outside the Talker Alias group (#2689)
Limit automatic renaming to the existing managed group. Keep exact-match user aliases outside that group unchanged without creating duplicates, while retaining confirmation and multi-identifier protections for managed aliases. Explain moving aliases out of the group in the tooltip and cover custom, ungrouped, managed and moved aliases in regression tests.
This commit is contained in:
@@ -213,6 +213,13 @@ public class TalkerAliasAutoAdder implements BiConsumer<RadioIdentifier,TalkerAl
|
||||
return;
|
||||
}
|
||||
|
||||
if(!ALIAS_GROUP.equals(existing.getGroup()))
|
||||
{
|
||||
//Only maintain aliases in the managed group. Existing user aliases must not be renamed or duplicated.
|
||||
markChecked(key, value);
|
||||
return;
|
||||
}
|
||||
|
||||
if(getIdentityCount(existing) > 1)
|
||||
{
|
||||
//The alias also identifies other radios or talkgroups - leave it alone.
|
||||
|
||||
Reference in New Issue
Block a user