Skip to content

Commit

Permalink
Library sidebar: toggleItem() emits click(), not delayed pressed()
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Feb 6, 2023
1 parent 33ef91f commit 9b3be3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/wlibrarysidebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void WLibrarySidebar::toggleSelectedItem() {
QModelIndex index = selectedIndex();
if (index.isValid()) {
// Activate the item so its content shows in the main library.
emit pressed(index);
emit clicked(index);
// Expand or collapse the item as necessary.
setExpanded(index, !isExpanded(index));
}
Expand Down

0 comments on commit 9b3be3f

Please sign in to comment.