From 2c1331e3e5252f38bcff656c7a3b0e4fe26fcb8d Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 17 Apr 2020 11:06:08 -0400 Subject: getOptionalKnownFolder() returns a string now --- src/sanitychecks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sanitychecks.cpp b/src/sanitychecks.cpp index 5ccd7699..3794aa57 100644 --- a/src/sanitychecks.cpp +++ b/src/sanitychecks.cpp @@ -320,8 +320,10 @@ std::vector> getSystemDirectories() std::vector> systemDirs; for (auto&& p : systemFolderIDs) { - if (const auto dir=MOBase::getOptionalKnownFolder(p.first)) { - auto path = QDir::toNativeSeparators(dir->absolutePath()).toLower(); + const auto dir = MOBase::getOptionalKnownFolder(p.first); + + if (!dir.isEmpty()) { + auto path = QDir::toNativeSeparators(dir).toLower(); if (!path.endsWith("\\")) { path += "\\"; } -- cgit v1.3.1