summaryrefslogtreecommitdiff
path: root/Radio.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /Radio.cpp
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'Radio.cpp')
-rw-r--r--Radio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Radio.cpp b/Radio.cpp
index c6175634..3940815f 100644
--- a/Radio.cpp
+++ b/Radio.cpp
@@ -136,12 +136,12 @@ namespace Radio
// the full call if no valid prefix (or prefix as a suffix) is specified
QString effective_prefix (QString callsign)
{
- auto prefix = callsign.toUpper ();
+ auto prefix = callsign;
auto slash_pos = callsign.indexOf ('/');
if (slash_pos >= 0)
{
auto right_size = callsign.size () - slash_pos - 1;
- if (right_size >= slash_pos) // naive call is longer than
+ if (right_size >= slash_pos) // native call is longer than
// prefix/suffix algorithm
{
prefix = callsign.left (slash_pos);
@@ -157,6 +157,6 @@ namespace Radio
}
}
}
- return prefix;
+ return prefix.toUpper ();
}
}