Browse Source

Fix append .!qB extension when it disabled.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
a55a27508a
  1. 2
      src/core/bittorrent/torrenthandle.cpp

2
src/core/bittorrent/torrenthandle.cpp

@ -206,6 +206,7 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle
if (!data.resumed) { if (!data.resumed) {
if (hasMetadata()) { if (hasMetadata()) {
setFirstLastPiecePriority(data.sequential); setFirstLastPiecePriority(data.sequential);
if (m_session->isAppendExtensionEnabled())
appendExtensionsToIncompleteFiles(); appendExtensionsToIncompleteFiles();
} }
} }
@ -1550,6 +1551,7 @@ void TorrentHandle::handleMetadataReceivedAlert(libt::metadata_received_alert *p
Q_UNUSED(p); Q_UNUSED(p);
qDebug("Metadata received for torrent %s.", qPrintable(name())); qDebug("Metadata received for torrent %s.", qPrintable(name()));
updateStatus(); updateStatus();
if (m_session->isAppendExtensionEnabled())
appendExtensionsToIncompleteFiles(); appendExtensionsToIncompleteFiles();
m_session->handleTorrentMetadataReceived(this); m_session->handleTorrentMetadataReceived(this);

Loading…
Cancel
Save