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

preferencesAboutTextFull
Craig Watson 9 years ago
parent be08d3ff0d
commit 0085d4dda5
  1. 1
      src/core/UBSettings.cpp

@ -851,6 +851,7 @@ QString UBSettings::userDataDirectory()
}
dataDirPath = UBFileSystemUtils::normalizeFilePath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
if (qApp->organizationName().size() > 0)
dataDirPath.replace(qApp->organizationName() + "/", "");
}
return dataDirPath;

Loading…
Cancel
Save