Browse Source

Ensure that all tranferlist columns have a size > 0.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
b32a68318c
  1. 1
      Changelog
  2. 7
      src/transferlistwidget.cpp

1
Changelog

@ -8,6 +8,7 @@
- FEATURE: Allow clearing execution and ban logs (Gelmir) - FEATURE: Allow clearing execution and ban logs (Gelmir)
- BUGFIX: Add confirmation dialog for "Force recheck" action (closes #131) - BUGFIX: Add confirmation dialog for "Force recheck" action (closes #131)
- BUGFIX: Greatly improve RSS manager performance (closes #34) - BUGFIX: Greatly improve RSS manager performance (closes #34)
- BUGFIX: Ensure that all columns in the tranferlist have a size > 0.
- OTHER: Generate translations at configure time to reduce tarball size - OTHER: Generate translations at configure time to reduce tarball size
- PERFORMANCE: Impove drawing speed of tranferlist when there are many torrents(>100) - PERFORMANCE: Impove drawing speed of tranferlist when there are many torrents(>100)
- PERFORMANCE: Impove drawing speed of peers list when there are many peers - PERFORMANCE: Impove drawing speed of peers list when there are many peers

7
src/transferlistwidget.cpp

@ -126,6 +126,13 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
setColumnHidden(TorrentModelItem::TR_TIME_ELAPSED, true); setColumnHidden(TorrentModelItem::TR_TIME_ELAPSED, true);
} }
//When adding/removing columns between versions some may
//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<TorrentModelItem::NB_COLUMNS; i++)
if (!columnWidth(i))
resizeColumnToContents(i);
setContextMenuPolicy(Qt::CustomContextMenu); setContextMenuPolicy(Qt::CustomContextMenu);
// Listen for list events // Listen for list events

Loading…
Cancel
Save