mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-04 19:04:30 +00:00
Make sure torrent save path is displayed
This commit is contained in:
parent
4c34066727
commit
3a237c93be
@ -208,7 +208,10 @@ Bittorrent* PropertiesWidget::getBTSession() const {
|
|||||||
|
|
||||||
void PropertiesWidget::updateSavePath(QTorrentHandle& _h) {
|
void PropertiesWidget::updateSavePath(QTorrentHandle& _h) {
|
||||||
if(h.is_valid() && h == _h) {
|
if(h.is_valid() && h == _h) {
|
||||||
save_path->setText(TorrentPersistentData::getSavePath(h.hash()));
|
QString p = TorrentPersistentData::getSavePath(h.hash());
|
||||||
|
if(p.isEmpty())
|
||||||
|
p = h.save_path();
|
||||||
|
save_path->setText(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +226,10 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Save path
|
// Save path
|
||||||
save_path->setText(TorrentPersistentData::getSavePath(h.hash()));
|
QString p = TorrentPersistentData::getSavePath(h.hash());
|
||||||
|
if(p.isEmpty())
|
||||||
|
p = h.save_path();
|
||||||
|
save_path->setText(p);
|
||||||
// Creation date
|
// Creation date
|
||||||
lbl_creationDate->setText(h.creation_date());
|
lbl_creationDate->setText(h.creation_date());
|
||||||
// Hash
|
// Hash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user