From a8a93f02e44751d42e9673d622dcd0233c024feb Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Thu, 26 Nov 2020 23:30:53 +0100 Subject: Cleanup child selection code --- src/widget/wlibrarysidebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget/wlibrarysidebar.cpp') diff --git a/src/widget/wlibrarysidebar.cpp b/src/widget/wlibrarysidebar.cpp index 1802c21dfc..0763c868e1 100644 --- a/src/widget/wlibrarysidebar.cpp +++ b/src/widget/wlibrarysidebar.cpp @@ -237,7 +237,7 @@ void WLibrarySidebar::selectChildIndex(const QModelIndex& index) { expand(parentIndex); parentIndex = parentIndex.parent(); } - scrollTo(translated, PositionAtCenter); + scrollTo(translated, EnsureVisible); } bool WLibrarySidebar::event(QEvent* pEvent) { -- cgit v1.2.3