mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
- Scroll to current torrent when it changes (Transfer list)
This commit is contained in:
@@ -1074,6 +1074,8 @@ void TransferListWidget::currentChanged(const QModelIndex& current, const QModel
|
|||||||
if(current.isValid()) {
|
if(current.isValid()) {
|
||||||
int row = proxyModel->mapToSource(current).row();
|
int row = proxyModel->mapToSource(current).row();
|
||||||
h = BTSession->getTorrentHandle(getHashFromRow(row));
|
h = BTSession->getTorrentHandle(getHashFromRow(row));
|
||||||
|
// Scroll Fix
|
||||||
|
scrollTo(current);
|
||||||
}
|
}
|
||||||
emit currentTorrentChanged(h);
|
emit currentTorrentChanged(h);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user