mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
BUGFIX: Disable ETA calculation when ETA column is hidden
This commit is contained in:
parent
b77e28fb12
commit
bb959ba465
4 changed files with 55 additions and 13 deletions
|
|
@ -364,11 +364,19 @@ void DownloadingTorrents::hideOrShowColumn(int index) {
|
|||
downloadList->setColumnHidden(index, true);
|
||||
getActionHoSCol(index)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_cancel.png")));
|
||||
--nbVisibleColumns;
|
||||
if(index == ETA) {
|
||||
BTSession->setETACalculation(false);
|
||||
qDebug("Disable ETA calculation");
|
||||
}
|
||||
} else {
|
||||
// User want to display the column
|
||||
downloadList->setColumnHidden(index, false);
|
||||
getActionHoSCol(index)->setIcon(QIcon(QString::fromUtf8(":/Icons/button_ok.png")));
|
||||
++nbVisibleColumns;
|
||||
if(index == ETA) {
|
||||
BTSession->setETACalculation(true);
|
||||
qDebug("Enable ETA calculation");
|
||||
}
|
||||
}
|
||||
//resize all others non-hidden columns
|
||||
for(unsigned int i=0; i<nbCols; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue