mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Forgot to clear some properties data when no torrent is selected
This commit is contained in:
parent
9bc90fc7b2
commit
15427619bd
2 changed files with 26 additions and 0 deletions
|
@ -160,6 +160,8 @@ void PropertiesWidget::clear() {
|
|||
upTotal->clear();
|
||||
dlTotal->clear();
|
||||
shareRatio->clear();
|
||||
listWebSeeds->clear();
|
||||
PropListModel->clear();
|
||||
setEnabled(false);
|
||||
}
|
||||
|
||||
|
@ -205,7 +207,10 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
|
|||
std::vector<int> files_priority = loadFilesPriorities();
|
||||
// List files in torrent
|
||||
arborescence *arb = new arborescence(h.get_torrent_info(), fp, files_priority);
|
||||
PropListModel->clear();
|
||||
addFilesToTree(arb->getRoot(), PropListModel->invisibleRootItem());
|
||||
// Increase first column width
|
||||
//filesList->resizeColumnToContents(0); // does not work
|
||||
} catch(invalid_handle e) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue