From 66cd3f8184aa1559a2c3f3c2b6fbc5d0d5c96fa2 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 14 Feb 2010 15:30:10 +0000 Subject: [PATCH] Fix save path display in Web UI too --- src/eventmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index 93015626e..093a15c52 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -286,7 +286,9 @@ QVariantMap EventManager::getPropGeneralInfo(QString hash) const { QTorrentHandle h = BTSession->getTorrentHandle(hash); if(h.is_valid() && h.has_metadata()) { // 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 data["creation_date"] = h.creation_date(); // Comment