Commit 0085d4dd authored by Craig Watson's avatar Craig Watson

Fix data directory path being wrong when qApp->organizationName is empty

parent be08d3ff
...@@ -851,6 +851,7 @@ QString UBSettings::userDataDirectory() ...@@ -851,6 +851,7 @@ QString UBSettings::userDataDirectory()
} }
dataDirPath = UBFileSystemUtils::normalizeFilePath(QStandardPaths::writableLocation(QStandardPaths::DataLocation)); dataDirPath = UBFileSystemUtils::normalizeFilePath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
if (qApp->organizationName().size() > 0)
dataDirPath.replace(qApp->organizationName() + "/", ""); dataDirPath.replace(qApp->organizationName() + "/", "");
} }
return dataDirPath; return dataDirPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment