mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Adding "Save path" column
because it's useful when moving files It's the same path as in properties because that's consistent
This commit is contained in:
parent
4f667c6e7d
commit
d1c3a07ba6
6 changed files with 22 additions and 13 deletions
|
@ -210,18 +210,7 @@ QTorrentHandle PropertiesWidget::getCurrentTorrent() const {
|
|||
|
||||
void PropertiesWidget::updateSavePath(const QTorrentHandle& _h) {
|
||||
if (h.is_valid() && h == _h) {
|
||||
QString p;
|
||||
if (h.has_metadata() && h.num_files() == 1) {
|
||||
p = h.firstFileSavePath();
|
||||
} else {
|
||||
p = TorrentPersistentData::getSavePath(h.hash());
|
||||
if (p.isEmpty())
|
||||
p = h.save_path();
|
||||
}
|
||||
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
|
||||
p.replace("/", "\\");
|
||||
#endif
|
||||
save_path->setText(p);
|
||||
save_path->setText(h.save_path_parsed());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue