diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sanitychecks.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<std::pair<QString, QString>> getSystemDirectories() std::vector<std::pair<QString, QString>> 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 += "\\"; } |
