mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Redesign "Incomplete folder" feature
Change "Incomplete/temp folder" term with "download folder". Allow to set "download folder" per torrent (in manual mode) and per category (in automatic mode).
This commit is contained in:
parent
b0e41abf5a
commit
1c0f8b4289
48 changed files with 1457 additions and 599 deletions
|
@ -581,11 +581,12 @@ void PropertiesWidget::loadUrlSeeds()
|
|||
|
||||
QString PropertiesWidget::getFullPath(const QModelIndex &index) const
|
||||
{
|
||||
const QDir saveDir {m_torrent->actualStorageLocation()};
|
||||
|
||||
if (m_propListModel->itemType(index) == TorrentContentModelItem::FileType)
|
||||
{
|
||||
const int fileIdx = m_propListModel->getFileIndex(index);
|
||||
const QString filename {m_torrent->filePath(fileIdx)};
|
||||
const QDir saveDir {m_torrent->savePath(true)};
|
||||
const QString fullPath {Utils::Fs::expandPath(saveDir.absoluteFilePath(filename))};
|
||||
return fullPath;
|
||||
}
|
||||
|
@ -596,7 +597,6 @@ QString PropertiesWidget::getFullPath(const QModelIndex &index) const
|
|||
for (QModelIndex modelIdx = m_propListModel->parent(nameIndex); modelIdx.isValid(); modelIdx = modelIdx.parent())
|
||||
folderPath.prepend(modelIdx.data().toString() + '/');
|
||||
|
||||
const QDir saveDir {m_torrent->savePath(true)};
|
||||
const QString fullPath {Utils::Fs::expandPath(saveDir.absoluteFilePath(folderPath))};
|
||||
return fullPath;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue