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

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

parent be08d3ff
...@@ -851,7 +851,8 @@ QString UBSettings::userDataDirectory() ...@@ -851,7 +851,8 @@ QString UBSettings::userDataDirectory()
} }
dataDirPath = UBFileSystemUtils::normalizeFilePath(QStandardPaths::writableLocation(QStandardPaths::DataLocation)); dataDirPath = UBFileSystemUtils::normalizeFilePath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
dataDirPath.replace(qApp->organizationName() + "/", ""); if (qApp->organizationName().size() > 0)
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