mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 22:37:59 +00:00
- Forgot to clear some properties data when no torrent is selected
This commit is contained in:
parent
9bc90fc7b2
commit
15427619bd
@ -806,6 +806,27 @@
|
|||||||
<property name="selectionMode">
|
<property name="selectionMode">
|
||||||
<enum>QAbstractItemView::ExtendedSelection</enum>
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="rootIsDecorated">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="uniformRowHeights">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="itemsExpandable">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="allColumnsShowFocus">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="expandsOnDoubleClick">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<attribute name="headerStretchLastSection">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="headerStretchLastSection">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -160,6 +160,8 @@ void PropertiesWidget::clear() {
|
|||||||
upTotal->clear();
|
upTotal->clear();
|
||||||
dlTotal->clear();
|
dlTotal->clear();
|
||||||
shareRatio->clear();
|
shareRatio->clear();
|
||||||
|
listWebSeeds->clear();
|
||||||
|
PropListModel->clear();
|
||||||
setEnabled(false);
|
setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,7 +207,10 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
|
|||||||
std::vector<int> files_priority = loadFilesPriorities();
|
std::vector<int> files_priority = loadFilesPriorities();
|
||||||
// List files in torrent
|
// List files in torrent
|
||||||
arborescence *arb = new arborescence(h.get_torrent_info(), fp, files_priority);
|
arborescence *arb = new arborescence(h.get_torrent_info(), fp, files_priority);
|
||||||
|
PropListModel->clear();
|
||||||
addFilesToTree(arb->getRoot(), PropListModel->invisibleRootItem());
|
addFilesToTree(arb->getRoot(), PropListModel->invisibleRootItem());
|
||||||
|
// Increase first column width
|
||||||
|
//filesList->resizeColumnToContents(0); // does not work
|
||||||
} catch(invalid_handle e) {
|
} catch(invalid_handle e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user