diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2020-11-26 23:30:53 +0100 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2020-11-27 01:08:33 +0100 |
commit | a8a93f02e44751d42e9673d622dcd0233c024feb (patch) | |
tree | cf3f870a2cf180a81c9bce43ca4a690a1bb60530 /src/widget/wlibrarysidebar.cpp | |
parent | 7f685124b73364b3561b4df6aba3f978a9556b17 (diff) |
Cleanup child selection code
Diffstat (limited to 'src/widget/wlibrarysidebar.cpp')
-rw-r--r-- | src/widget/wlibrarysidebar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |