mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
On Linux use legacy 'data' directory only as a fallback
This commit is contained in:
parent
a669ec49ad
commit
7fff393b0e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ QString Private::DefaultProfile::dataLocation() const
|
||||||
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
|
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
|
||||||
+ QLatin1Char('/') + profileName() + QLatin1Char('/');
|
+ 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'",
|
qWarning("The legacy data directory '%s' is used. It is recommended to move its content to '%s'",
|
||||||
qUtf8Printable(legacyDir), qUtf8Printable(dataDir));
|
qUtf8Printable(legacyDir), qUtf8Printable(dataDir));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue