Temporarily revert PR #2885 (filename column in peers view).

There's a bug that causes frequent crashes.
Issue #4597.
This commit is contained in:
sledgehammer999
2016-01-21 00:26:03 +02:00
parent 29b5d460ea
commit 1ac68a9192
7 changed files with 7 additions and 36 deletions

View File

@@ -211,20 +211,6 @@ QByteArray TorrentInfo::metadata() const
return QByteArray(m_nativeInfo->metadata().get(), m_nativeInfo->metadata_size());
}
QStringList TorrentInfo::filesForPiece(int pieceIndex) const
{
if (pieceIndex < 0)
return QStringList();
std::vector<libtorrent::file_slice> files(
nativeInfo()->map_block(pieceIndex, 0, nativeInfo()->piece_length()));
QStringList res;
for (const libtorrent::file_slice& s: files) {
res.append(filePath(s.file_index));
}
return res;
}
void TorrentInfo::renameFile(uint index, const QString &newPath)
{
if (!isValid()) return;