From cd618150b0d78bc404cbc2dbdf3126bd38b3dc46 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 9 Mar 2009 21:25:39 +0000 Subject: [PATCH] - Little code optimization --- src/downloadingTorrents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index 611bdb95f..9dbbd61c8 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -708,7 +708,7 @@ void DownloadingTorrents::saveColWidthDLList() const{ width_list = line.split(' '); } for(short i=0; icolumnWidth(i)<1 && width_list.size() == DLListModel->columnCount()-1 && width_list.at(i).toInt()>=1) { + if(downloadList->columnWidth(i)<1 && width_list.size() == nbColumns && width_list.at(i).toInt()>=1) { // load the former width new_width_list << width_list.at(i); } else if(downloadList->columnWidth(i)>=1) {