1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

- Little code optimization

This commit is contained in:
Christophe Dumez 2009-03-09 21:25:39 +00:00
parent a2bcfa9192
commit cd618150b0

View File

@ -708,7 +708,7 @@ void DownloadingTorrents::saveColWidthDLList() const{
width_list = line.split(' ');
}
for(short i=0; i<nbColumns; ++i){
if(downloadList->columnWidth(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) {