Merge pull request #5420 from thalieht/alignment

Changes and additions in search, peerlist, transferlist
This commit is contained in:
sledgehammer999 2017-01-21 02:58:32 +02:00 committed by GitHub
commit 68ecbf4185
10 changed files with 176 additions and 83 deletions

View file

@ -141,7 +141,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window)
//end up being size 0 when the new version is launched with
//a conf file from the previous version.
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++)
if (!columnWidth(i))
if ((columnWidth(i) <= 0) && (!isColumnHidden(i)))
resizeColumnToContents(i);
setContextMenuPolicy(Qt::CustomContextMenu);