Browse Source

Fix adjustActualSavePath() when torrent is moving.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
9c28977001
  1. 8
      src/core/bittorrent/torrenthandle.cpp
  2. 1
      src/core/bittorrent/torrenthandle.h

8
src/core/bittorrent/torrenthandle.cpp

@ -1691,6 +1691,14 @@ void TorrentHandle::removeExtensionsFromIncompleteFiles()
} }
void TorrentHandle::adjustActualSavePath() void TorrentHandle::adjustActualSavePath()
{
if (!isMoveInProgress())
adjustActualSavePath_impl();
else
m_moveStorageTriggers.append(boost::bind(&TorrentHandle::adjustActualSavePath_impl, this));
}
void TorrentHandle::adjustActualSavePath_impl()
{ {
QString path; QString path;
if (!useTempPath()) { if (!useTempPath()) {

1
src/core/bittorrent/torrenthandle.h

@ -333,6 +333,7 @@ namespace BitTorrent
void resolveCountries(bool b); void resolveCountries(bool b);
void adjustSavePath(); void adjustSavePath();
void adjustActualSavePath(); void adjustActualSavePath();
void adjustActualSavePath_impl();
void moveStorage(const QString &newPath); void moveStorage(const QString &newPath);
void appendExtensionsToIncompleteFiles(); void appendExtensionsToIncompleteFiles();
void removeExtensionsFromIncompleteFiles(); void removeExtensionsFromIncompleteFiles();

Loading…
Cancel
Save