mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
- Fixed columns width in transfers list (problem was caused by the hidden "hash" column that didn't have a null size)
This commit is contained in:
parent
190dc793ac
commit
1c0e890252
2
TODO
2
TODO
@ -47,7 +47,7 @@
|
|||||||
- make use of finishedChecking alert if hydri implements it
|
- make use of finishedChecking alert if hydri implements it
|
||||||
- Clean up delayed progress column sorting code
|
- Clean up delayed progress column sorting code
|
||||||
- Clean up pause after checking 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 :
|
- Wait for some bug fixes in libtorrent :
|
||||||
- upload/download limit per torrent (Ticket #83)
|
- upload/download limit per torrent (Ticket #83)
|
||||||
- double free or corruption on exit (Ticket #84)
|
- double free or corruption on exit (Ticket #84)
|
||||||
|
@ -121,7 +121,7 @@ bool FinishedTorrents::loadColWidthFinishedList(){
|
|||||||
if(line.isEmpty())
|
if(line.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
QStringList width_list = line.split(' ');
|
QStringList width_list = line.split(' ');
|
||||||
if(width_list.size() != finishedListModel->columnCount())
|
if(width_list.size() != finishedListModel->columnCount()-1)
|
||||||
return false;
|
return false;
|
||||||
unsigned int listSize = width_list.size();
|
unsigned int listSize = width_list.size();
|
||||||
for(unsigned int i=0; i<listSize; ++i){
|
for(unsigned int i=0; i<listSize; ++i){
|
||||||
@ -137,7 +137,7 @@ void FinishedTorrents::saveColWidthFinishedList() const{
|
|||||||
qDebug("Saving columns width in finished list");
|
qDebug("Saving columns width in finished list");
|
||||||
QSettings settings("qBittorrent", "qBittorrent");
|
QSettings settings("qBittorrent", "qBittorrent");
|
||||||
QStringList width_list;
|
QStringList width_list;
|
||||||
unsigned int nbColumns = finishedListModel->columnCount();
|
unsigned int nbColumns = finishedListModel->columnCount()-1;
|
||||||
for(unsigned int i=0; i<nbColumns; ++i){
|
for(unsigned int i=0; i<nbColumns; ++i){
|
||||||
width_list << QString(misc::toString(finishedList->columnWidth(i)).c_str());
|
width_list << QString(misc::toString(finishedList->columnWidth(i)).c_str());
|
||||||
}
|
}
|
||||||
|
@ -807,7 +807,7 @@ void GUI::saveColWidthDLList() const{
|
|||||||
qDebug("Saving columns width in download list");
|
qDebug("Saving columns width in download list");
|
||||||
QSettings settings("qBittorrent", "qBittorrent");
|
QSettings settings("qBittorrent", "qBittorrent");
|
||||||
QStringList width_list;
|
QStringList width_list;
|
||||||
unsigned int nbColumns = DLListModel->columnCount();
|
unsigned int nbColumns = DLListModel->columnCount()-1;
|
||||||
for(unsigned int i=0; i<nbColumns; ++i){
|
for(unsigned int i=0; i<nbColumns; ++i){
|
||||||
width_list << QString(misc::toString(downloadList->columnWidth(i)).c_str());
|
width_list << QString(misc::toString(downloadList->columnWidth(i)).c_str());
|
||||||
}
|
}
|
||||||
@ -824,8 +824,10 @@ bool GUI::loadColWidthDLList(){
|
|||||||
if(line.isEmpty())
|
if(line.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
QStringList width_list = line.split(' ');
|
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;
|
return false;
|
||||||
|
}
|
||||||
unsigned int listSize = width_list.size();
|
unsigned int listSize = width_list.size();
|
||||||
for(unsigned int i=0; i<listSize; ++i){
|
for(unsigned int i=0; i<listSize; ++i){
|
||||||
downloadList->header()->resizeSection(i, width_list.at(i).toInt());
|
downloadList->header()->resizeSection(i, width_list.at(i).toInt());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user