mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
- Clearing of fiels list in properties was a bit too efficient (it removed header too)
This commit is contained in:
@@ -161,7 +161,7 @@ void PropertiesWidget::clear() {
|
||||
dlTotal->clear();
|
||||
shareRatio->clear();
|
||||
listWebSeeds->clear();
|
||||
PropListModel->clear();
|
||||
PropListModel->removeRows(0, PropListModel->rowCount());
|
||||
setEnabled(false);
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ 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();
|
||||
PropListModel->removeRows(0, PropListModel->rowCount());
|
||||
addFilesToTree(arb->getRoot(), PropListModel->invisibleRootItem());
|
||||
// Increase first column width
|
||||
//filesList->resizeColumnToContents(0); // does not work
|
||||
|
||||
Reference in New Issue
Block a user