mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Correctly concatenate path components
This commit is contained in:
parent
7e8a176751
commit
fdbf8cb0ee
8 changed files with 14 additions and 14 deletions
|
@ -4313,7 +4313,7 @@ void Session::startUpTorrents()
|
|||
qDebug("Initializing torrents resume data storage...");
|
||||
|
||||
const QString dbPath = Utils::Fs::expandPathAbs(
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("torrents.db"));
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("/torrents.db"));
|
||||
const bool dbStorageExists = QFile::exists(dbPath);
|
||||
|
||||
ResumeDataStorage *startupStorage = nullptr;
|
||||
|
@ -4324,14 +4324,14 @@ void Session::startUpTorrents()
|
|||
if (!dbStorageExists)
|
||||
{
|
||||
const QString dataPath = Utils::Fs::expandPathAbs(
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("BT_backup"));
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("/BT_backup"));
|
||||
startupStorage = new BencodeResumeDataStorage(dataPath, this);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
const QString dataPath = Utils::Fs::expandPathAbs(
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("BT_backup"));
|
||||
specialFolderLocation(SpecialFolder::Data) + QLatin1String("/BT_backup"));
|
||||
m_resumeDataStorage = new BencodeResumeDataStorage(dataPath, this);
|
||||
|
||||
if (dbStorageExists)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue