From c390d3aec7de5246ae7d0ced1b2be2a7911b7d7e Mon Sep 17 00:00:00 2001 From: Jacob Gilbert Date: Tue, 29 Jun 2021 07:45:43 -0600 Subject: [PATCH] add support to read files that end in '.sigmf-' Signed-off-by: Jacob Gilbert --- src/inputsource.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/inputsource.cpp b/src/inputsource.cpp index ebbf749..1f4c593 100644 --- a/src/inputsource.cpp +++ b/src/inputsource.cpp @@ -397,13 +397,8 @@ void InputSource::openFile(const char *filename) annotationList.clear(); QString metaFilename; - if (suffix == "sigmf-meta") { + if (suffix == "sigmf-meta" || suffix == "sigmf-data" || suffix == "sigmf-") { dataFilename = fileInfo.path() + "/" + fileInfo.completeBaseName() + ".sigmf-data"; - metaFilename = filename; - readMetaData(metaFilename); - } - else if (suffix == "sigmf-data") { - dataFilename = filename; metaFilename = fileInfo.path() + "/" + fileInfo.completeBaseName() + ".sigmf-meta"; readMetaData(metaFilename); }