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

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

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

Loading…
Cancel
Save