mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
TransferListWidget: keep columns width even if they are hidden on qBittorrent startup (unless something goes wrong)
This commit is contained in:
@@ -141,7 +141,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window)
|
|||||||
//end up being size 0 when the new version is launched with
|
//end up being size 0 when the new version is launched with
|
||||||
//a conf file from the previous version.
|
//a conf file from the previous version.
|
||||||
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++)
|
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++)
|
||||||
if (!columnWidth(i))
|
if ((columnWidth(i) <= 0) && (!isColumnHidden(i)))
|
||||||
resizeColumnToContents(i);
|
resizeColumnToContents(i);
|
||||||
|
|
||||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user