From b4e69627c7a63deba7b0fe6bf0f9b3b84f4fb5e4 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 9 Jun 2018 22:22:57 +1000 Subject: [PATCH] Fix profile datafolder access glitch --- sleepyhead/SleepLib/machine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sleepyhead/SleepLib/machine.cpp b/sleepyhead/SleepLib/machine.cpp index b18f62cd..3aca31c8 100644 --- a/sleepyhead/SleepLib/machine.cpp +++ b/sleepyhead/SleepLib/machine.cpp @@ -543,10 +543,11 @@ void Machine::setInfo(MachineInfo inf) //const quint32 channel_version=1; const QString Machine::getDataPath() -{ +{ + m_dataPath = PREF.Get("{home}/Profiles/")+profile->user->userName()+"/"+info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial) + "/"; //if (m_dataPath.isEmpty()) { - m_dataPath = profile->Get("{" + STR_GEN_DataFolder + "}/" + info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial)) + "/"; + // m_dataPath = profile->Get("{" + STR_GEN_DataFolder + "}/" + info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial)) + "/"; // } return m_dataPath; }