Skip to content

Commit 1454e2e

Browse files
authored
Fix qt widget attribute error in windows (#2440)
1 parent 5d9f04a commit 1454e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sleap/gui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def add_menu_check_item(menu, key: str, name: str):
407407
# check and uncheck submenu items
408408
def _menu_check_single(menu, item_text):
409409
"""Helper method to select exactly one submenu item."""
410-
for menu_item in menu.children():
410+
for menu_item in menu.actions():
411411
if menu_item.text() == str(item_text):
412412
menu_item.setChecked(True)
413413
else:

0 commit comments

Comments
 (0)