From 5449359f38b0dddf67c879e86e116a313891fcc8 Mon Sep 17 00:00:00 2001 From: "Francesc M." Date: Sun, 6 Oct 2024 17:01:40 +0200 Subject: [PATCH] Fix Mac not scrolling to commit --- src/history/CommitHistoryView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/history/CommitHistoryView.cpp b/src/history/CommitHistoryView.cpp index 46c6e510..5ee49796 100644 --- a/src/history/CommitHistoryView.cpp +++ b/src/history/CommitHistoryView.cpp @@ -176,16 +176,16 @@ void CommitHistoryView::focusOnCommit(const QString &goToSha) if (mIsFiltering) { - const auto sourceIndex = mProxyModel->sourceModel()->index(row, 0); + const auto sourceIndex = mProxyModel->sourceModel()->index(row, 1); row = mProxyModel->mapFromSource(sourceIndex).row(); } clearSelection(); - const auto index = model()->index(row, 0); + const auto index = model()->index(row, 1); setCurrentIndex(index); - scrollTo(currentIndex()); + scrollTo(index); } QModelIndexList CommitHistoryView::selectedIndexes() const