1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 18:04:32 +00:00

Allow to open incomplete files from content view

Fixes regression from f44341a8e26f078b8d1921824bf6d88a9c97f135.

PR #16318.
This commit is contained in:
Vladimir Golovnev 2022-01-30 08:52:16 +03:00 committed by GitHub
parent 7a910a8cc1
commit 47daf1b358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -600,7 +600,7 @@ QString PropertiesWidget::getFullPath(const QModelIndex &index) const
if (m_propListModel->itemType(index) == TorrentContentModelItem::FileType) if (m_propListModel->itemType(index) == TorrentContentModelItem::FileType)
{ {
const int fileIdx = m_propListModel->getFileIndex(index); const int fileIdx = m_propListModel->getFileIndex(index);
const QString filename {m_torrent->filePath(fileIdx)}; const QString filename {m_torrent->actualFilePath(fileIdx)};
const QString fullPath {Utils::Fs::expandPath(saveDir.absoluteFilePath(filename))}; const QString fullPath {Utils::Fs::expandPath(saveDir.absoluteFilePath(filename))};
return fullPath; return fullPath;
} }