Browse Source

Fix scrolling to the lowermost visible torrent

Fixes #3221.
PR #16543.
adaptive-webui-19844
Aleksandr Cupacenko 3 years ago committed by GitHub
parent
commit
98bdfcef65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/gui/transferlistwidget.cpp

4
src/gui/transferlistwidget.cpp

@ -1178,8 +1178,8 @@ void TransferListWidget::currentChanged(const QModelIndex &current, const QModel
if (current.isValid()) if (current.isValid())
{ {
torrent = m_listModel->torrentHandle(mapToSource(current)); torrent = m_listModel->torrentHandle(mapToSource(current));
// Scroll Fix // Fix scrolling to the lowermost visible torrent
scrollTo(current); QMetaObject::invokeMethod(this, [this, current] { scrollTo(current); }, Qt::QueuedConnection);
} }
emit currentTorrentChanged(torrent); emit currentTorrentChanged(torrent);
} }

Loading…
Cancel
Save