From b32a68318c86adb8cb1d0b888212cd9928e64e8b Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 29 Jun 2013 18:16:23 +0300 Subject: [PATCH] Ensure that all tranferlist columns have a size > 0. --- Changelog | 1 + src/transferlistwidget.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Changelog b/Changelog index 8633fe381..930086079 100644 --- a/Changelog +++ b/Changelog @@ -8,6 +8,7 @@ - FEATURE: Allow clearing execution and ban logs (Gelmir) - BUGFIX: Add confirmation dialog for "Force recheck" action (closes #131) - 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 - PERFORMANCE: Impove drawing speed of tranferlist when there are many torrents(>100) - PERFORMANCE: Impove drawing speed of peers list when there are many peers diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index d48638e10..dafa40a70 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -126,6 +126,13 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window, 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