mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix save path display in Web UI too
This commit is contained in:
parent
3a237c93be
commit
66cd3f8184
1 changed files with 3 additions and 1 deletions
|
@ -286,7 +286,9 @@ QVariantMap EventManager::getPropGeneralInfo(QString hash) const {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
if(h.is_valid() && h.has_metadata()) {
|
if(h.is_valid() && h.has_metadata()) {
|
||||||
// Save path
|
// Save path
|
||||||
data["save_path"] = TorrentPersistentData::getSavePath(hash);
|
QString p = TorrentPersistentData::getSavePath(hash);
|
||||||
|
if(p.isEmpty()) p = h.save_path();
|
||||||
|
data["save_path"] = p;
|
||||||
// Creation date
|
// Creation date
|
||||||
data["creation_date"] = h.creation_date();
|
data["creation_date"] = h.creation_date();
|
||||||
// Comment
|
// Comment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue