mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge pull request #1064 from BlueGreenMagick/fix-sidebar-click
Clicking the expander icon should not trigger click event
This commit is contained in:
commit
060293c8f5
1 changed files with 2 additions and 1 deletions
|
@ -443,6 +443,7 @@ class SidebarTreeView(QTreeView):
|
|||
super().mouseReleaseEvent(event)
|
||||
if event.button() == Qt.LeftButton:
|
||||
idx = self.indexAt(event.pos())
|
||||
if idx == self.currentIndex():
|
||||
self._on_click_index(idx)
|
||||
|
||||
def keyPressEvent(self, event: QKeyEvent) -> None:
|
||||
|
|
Loading…
Reference in a new issue