From 79c5809b59d9744a7717b6d93b7e04f168f0ba66 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Wed, 15 Sep 2021 16:06:21 -0400 Subject: [PATCH] Add support for Viatom/Wellue files that have a SleepU_ etc. prefix. --- oscar/SleepLib/loader_plugins/viatom_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/viatom_loader.cpp b/oscar/SleepLib/loader_plugins/viatom_loader.cpp index dbee9e85..ff545263 100644 --- a/oscar/SleepLib/loader_plugins/viatom_loader.cpp +++ b/oscar/SleepLib/loader_plugins/viatom_loader.cpp @@ -208,7 +208,8 @@ void ViatomLoader::EndEventList(ChannelID channel, qint64 /*t*/) QStringList ViatomLoader::getNameFilter() { - return QStringList("20[0-5][0-9][01][0-9][0-3][0-9][012][0-9][0-5][0-9][0-5][0-9]"); + // Sometimes the files have a SleepU_ or O2Ring_ prefix. + return QStringList("*20[0-5][0-9][01][0-9][0-3][0-9][012][0-9][0-5][0-9][0-5][0-9]"); } static bool viatom_initialized = false;