Browse Source

On Linux use legacy 'data' directory only as a fallback

adaptive-webui-19844
lbilli 4 years ago
parent
commit
2d3481b9a9
No known key found for this signature in database
GPG Key ID: BDC4552D2003CB80
  1. 2
      src/base/profile_p.cpp

2
src/base/profile_p.cpp

@ -83,7 +83,7 @@ QString Private::DefaultProfile::dataLocation() const @@ -83,7 +83,7 @@ QString Private::DefaultProfile::dataLocation() const
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ QLatin1Char('/') + profileName() + QLatin1Char('/');
if (QDir(legacyDir).exists())
if (!QDir(dataDir).exists() && QDir(legacyDir).exists())
{
qWarning("The legacy data directory '%s' is used. It is recommended to move its content to '%s'",
qUtf8Printable(legacyDir), qUtf8Printable(dataDir));

Loading…
Cancel
Save