mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Peer lis column width are now restored on startup
This commit is contained in:
parent
6dbd1daa5c
commit
e97b805365
3 changed files with 29 additions and 1 deletions
|
@ -242,6 +242,8 @@ void PropertiesWidget::saveSettings() {
|
|||
for(int i=0; i<PropListModel->columnCount(); ++i) {
|
||||
contentColsWidths.append(filesList->columnWidth(i));
|
||||
}
|
||||
settings.setValue(QString::fromUtf8("TorrentProperties/filesColsWidth"), contentColsWidths);
|
||||
// Splitter sizes
|
||||
QSplitter *hSplitter = static_cast<QSplitter*>(parentWidget());
|
||||
QList<int> sizes;
|
||||
if(state == VISIBLE)
|
||||
|
@ -254,7 +256,6 @@ void PropertiesWidget::saveSettings() {
|
|||
if(sizes.size() == 2) {
|
||||
settings.setValue(QString::fromUtf8("TorrentProperties/SplitterSizes"), QString::number(sizes.first())+','+QString::number(sizes.last()));
|
||||
}
|
||||
settings.setValue(QString::fromUtf8("TorrentProperties/filesColsWidth"), contentColsWidths);
|
||||
}
|
||||
|
||||
void PropertiesWidget::loadPeers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue