From 2d3481b9a93383110c264eafa4fa0fa64a37f057 Mon Sep 17 00:00:00 2001 From: lbilli Date: Thu, 7 Jan 2021 06:12:01 -0500 Subject: [PATCH] On Linux use legacy 'data' directory only as a fallback --- src/base/profile_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/profile_p.cpp b/src/base/profile_p.cpp index 46ebbaf50..0c504c673 100644 --- a/src/base/profile_p.cpp +++ b/src/base/profile_p.cpp @@ -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));