mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Fix column size too narrow on resize
Instead of giving a value, just resize to the content size
This commit is contained in:
parent
27cf98a962
commit
c2c0dd2717
6 changed files with 6 additions and 18 deletions
|
@ -371,9 +371,7 @@ void PropertiesWidget::readSettings()
|
|||
}
|
||||
const int current_tab = pref->getPropCurTab();
|
||||
const bool visible = pref->getPropVisible();
|
||||
// the following will call saveSettings but shouldn't change any state
|
||||
if (!m_ui->filesList->header()->restoreState(pref->getPropFileListState()))
|
||||
m_ui->filesList->header()->resizeSection(0, 400); // Default
|
||||
m_ui->filesList->header()->restoreState(pref->getPropFileListState());
|
||||
m_tabBar->setCurrentIndex(current_tab);
|
||||
if (!visible)
|
||||
setVisibility(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue