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:
parent
7a910a8cc1
commit
47daf1b358
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user