|
|
@ -236,19 +236,21 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) { |
|
|
|
// Save path
|
|
|
|
// Save path
|
|
|
|
updateSavePath(h); |
|
|
|
updateSavePath(h); |
|
|
|
changeSavePathButton->setEnabled(h.has_metadata()); |
|
|
|
changeSavePathButton->setEnabled(h.has_metadata()); |
|
|
|
// Creation date
|
|
|
|
|
|
|
|
lbl_creationDate->setText(h.creation_date()); |
|
|
|
|
|
|
|
// Hash
|
|
|
|
// Hash
|
|
|
|
hash_lbl->setText(h.hash()); |
|
|
|
hash_lbl->setText(h.hash()); |
|
|
|
|
|
|
|
PropListModel->clear(); |
|
|
|
|
|
|
|
if(h.has_metadata()) { |
|
|
|
|
|
|
|
// Creation date
|
|
|
|
|
|
|
|
lbl_creationDate->setText(h.creation_date()); |
|
|
|
// Comment
|
|
|
|
// Comment
|
|
|
|
comment_text->setHtml(h.comment()); |
|
|
|
comment_text->setHtml(h.comment()); |
|
|
|
// URL seeds
|
|
|
|
// URL seeds
|
|
|
|
loadUrlSeeds(); |
|
|
|
loadUrlSeeds(); |
|
|
|
// List files in torrent
|
|
|
|
// List files in torrent
|
|
|
|
PropListModel->clear(); |
|
|
|
|
|
|
|
PropListModel->setupModelData(h.get_torrent_info()); |
|
|
|
PropListModel->setupModelData(h.get_torrent_info()); |
|
|
|
// Expand first item if possible
|
|
|
|
// Expand first item if possible
|
|
|
|
filesList->expand(PropListModel->index(0, 0)); |
|
|
|
filesList->expand(PropListModel->index(0, 0)); |
|
|
|
|
|
|
|
} |
|
|
|
} catch(invalid_handle e) { |
|
|
|
} catch(invalid_handle e) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|