Browse Source

Allow to open incomplete files from content view

Fixes regression from f44341a8e2.

PR #16318.
adaptive-webui-19844
Vladimir Golovnev 3 years ago committed by GitHub
parent
commit
47daf1b358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/properties/propertieswidget.cpp

2
src/gui/properties/propertieswidget.cpp

@ -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…
Cancel
Save