mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix error when right-clicking empty space in update addons dialog (#3780)
This commit is contained in:
parent
ca9fb505aa
commit
3641030b35
1 changed files with 2 additions and 1 deletions
|
@ -1369,7 +1369,8 @@ class ChooseAddonsToUpdateList(QListWidget):
|
|||
self.header_checked(self.bool_to_check(not checked))
|
||||
|
||||
def on_context_menu(self, point: QPoint) -> None:
|
||||
item = self.itemAt(point)
|
||||
if not (item := self.itemAt(point)):
|
||||
return
|
||||
addon_id = item.data(self.ADDON_ID_ROLE)
|
||||
m = QMenu()
|
||||
a = m.addAction(tr.addons_view_addon_page())
|
||||
|
|
Loading…
Reference in a new issue