mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Merge pull request #14179 from lbilli/patch-1
On Linux use legacy 'data' directory only as a fallback
This commit is contained in:
commit
e3119b457c
@ -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…
Reference in New Issue
Block a user