mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
Fix adjustActualSavePath() when torrent is moving.
This commit is contained in:
parent
a55a27508a
commit
9c28977001
2 changed files with 9 additions and 0 deletions
|
@ -1691,6 +1691,14 @@ void TorrentHandle::removeExtensionsFromIncompleteFiles()
|
|||
}
|
||||
|
||||
void TorrentHandle::adjustActualSavePath()
|
||||
{
|
||||
if (!isMoveInProgress())
|
||||
adjustActualSavePath_impl();
|
||||
else
|
||||
m_moveStorageTriggers.append(boost::bind(&TorrentHandle::adjustActualSavePath_impl, this));
|
||||
}
|
||||
|
||||
void TorrentHandle::adjustActualSavePath_impl()
|
||||
{
|
||||
QString path;
|
||||
if (!useTempPath()) {
|
||||
|
|
|
@ -333,6 +333,7 @@ namespace BitTorrent
|
|||
void resolveCountries(bool b);
|
||||
void adjustSavePath();
|
||||
void adjustActualSavePath();
|
||||
void adjustActualSavePath_impl();
|
||||
void moveStorage(const QString &newPath);
|
||||
void appendExtensionsToIncompleteFiles();
|
||||
void removeExtensionsFromIncompleteFiles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue