From 22527b9c4448c1865b8d2f8be1bdea747e49776e Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 23 Aug 2014 00:23:30 +1000 Subject: [PATCH] Weinmann SD cards don't have a subfolder --- .../SleepLib/loader_plugins/weinmann_loader.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sleepyhead/SleepLib/loader_plugins/weinmann_loader.cpp b/sleepyhead/SleepLib/loader_plugins/weinmann_loader.cpp index 9d3c9335..f415a65c 100644 --- a/sleepyhead/SleepLib/loader_plugins/weinmann_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/weinmann_loader.cpp @@ -45,11 +45,6 @@ bool WeinmannLoader::Detect(const QString & givenpath) return false; } - // Weinman has a... - if (!dir.cd("SOMNOsoft2")) { - return false; - } - // Check for the settings file inside the .. folder if (!dir.exists("WM_DATA.TDF")) { return false; @@ -121,19 +116,10 @@ void HighPass(char * data, int samples, float cutoff, float dt) int WeinmannLoader::Open(QString path) { - QString newpath; path = path.replace("\\", "/"); - QString dirtag = "SOMNOsoft2"; - - if (path.endsWith("/" + dirtag)) { - return -1; - } else { - newpath = path + "/" + dirtag; - } - - QFile wmdata(newpath + "/WM_DATA.TDF"); + QFile wmdata(path + "/WM_DATA.TDF"); if (!wmdata.open(QFile::ReadOnly)) { return -1; }