Browse Source

Use better method to set bit

adaptive-webui-19844
Vladimir Golovnev (Glassez) 2 years ago
parent
commit
b335114219
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 2
      src/base/bittorrent/torrentimpl.cpp

2
src/base/bittorrent/torrentimpl.cpp

@ -2055,7 +2055,7 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p) @@ -2055,7 +2055,7 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p)
const int fileIndex = m_indexMap.value(p->index, -1);
Q_ASSERT(fileIndex >= 0);
m_completedFiles[fileIndex] = true;
m_completedFiles.setBit(fileIndex);
if (m_session->isAppendExtensionEnabled())
{

Loading…
Cancel
Save