Skip to content

Commit 1da3850

Browse files
Jacob Gilbertjacobagilbert
authored andcommitted
fallback to core:description for anno label
Signed-off-by: Jacob Gilbert <jacobgilbert@protonmail.com>
1 parent 97d4755 commit 1da3850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/inputsource.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ void InputSource::readMetaData(const QString &filename)
340340
auto frequencyRange = range_t<double>{freq_lower_edge, freq_upper_edge};
341341

342342
auto label = sigmf_annotation["core:label"].toString();
343+
if (label.isEmpty()) {
344+
label = sigmf_annotation["core:description"].toString();
345+
}
343346

344347
auto comment = sigmf_annotation["core:comment"].toString();
345348

0 commit comments

Comments
 (0)