mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Fix column null width when toggling column visibility (Win32)
This commit is contained in:
@@ -878,7 +878,11 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&){
|
|||||||
act = hideshowColumn.exec(QCursor::pos());
|
act = hideshowColumn.exec(QCursor::pos());
|
||||||
if(act) {
|
if(act) {
|
||||||
int col = actions.indexOf(act);
|
int col = actions.indexOf(act);
|
||||||
|
Q_ASSERT(col >= 0);
|
||||||
|
qDebug("Toggling column %d visibility", col);
|
||||||
setColumnHidden(col, !isColumnHidden(col));
|
setColumnHidden(col, !isColumnHidden(col));
|
||||||
|
if(!isColumnHidden(col))
|
||||||
|
setColumnWidth(col, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user