diff --git a/TODO b/TODO index 410989487..485a8e5fa 100644 --- a/TODO +++ b/TODO @@ -47,7 +47,7 @@ - make use of finishedChecking alert if hydri implements it - Clean up delayed progress column sorting code - Clean up pause after checking code - - Check hidden columns and width problem in transfers list + - use abort() for session deletion? - Wait for some bug fixes in libtorrent : - upload/download limit per torrent (Ticket #83) - double free or corruption on exit (Ticket #84) diff --git a/src/FinishedTorrents.cpp b/src/FinishedTorrents.cpp index 0a7919512..abf60fe1c 100644 --- a/src/FinishedTorrents.cpp +++ b/src/FinishedTorrents.cpp @@ -121,7 +121,7 @@ bool FinishedTorrents::loadColWidthFinishedList(){ if(line.isEmpty()) return false; QStringList width_list = line.split(' '); - if(width_list.size() != finishedListModel->columnCount()) + if(width_list.size() != finishedListModel->columnCount()-1) return false; unsigned int listSize = width_list.size(); for(unsigned int i=0; icolumnCount(); + unsigned int nbColumns = finishedListModel->columnCount()-1; for(unsigned int i=0; icolumnWidth(i)).c_str()); } diff --git a/src/GUI.cpp b/src/GUI.cpp index 829f3cea5..794eb3b87 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -807,7 +807,7 @@ void GUI::saveColWidthDLList() const{ qDebug("Saving columns width in download list"); QSettings settings("qBittorrent", "qBittorrent"); QStringList width_list; - unsigned int nbColumns = DLListModel->columnCount(); + unsigned int nbColumns = DLListModel->columnCount()-1; for(unsigned int i=0; icolumnWidth(i)).c_str()); } @@ -824,8 +824,10 @@ bool GUI::loadColWidthDLList(){ if(line.isEmpty()) return false; QStringList width_list = line.split(' '); - if(width_list.size() != DLListModel->columnCount()) + if(width_list.size() != DLListModel->columnCount()-1){ + qDebug("Corrupted values for download list columns sizes"); return false; + } unsigned int listSize = width_list.size(); for(unsigned int i=0; iheader()->resizeSection(i, width_list.at(i).toInt());