Skip to content

Commit 2e4b831

Browse files
author
Arvo Järve
committed
fix OH prefix usage
1 parent 66814af commit 2e4b831

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Radio.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ namespace Radio
143143
auto const& match = prefix_re.match (prefix);
144144
auto shorted = match.captured ("prefix");
145145
if (shorted.isEmpty() || region > -1) {
146-
if (shorted.isEmpty()) shorted = prefix+"0";
146+
if (shorted.isEmpty()) {
147+
if (region > -1)
148+
shorted = prefix+"0";
149+
else
150+
shorted = prefix;
151+
}
147152
if (region > -1) shorted = shorted.left(shorted.size()-1) + QString::number(region);
148153
return shorted.toUpper ();
149154
} else return prefix;

0 commit comments

Comments
 (0)