Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def test_Slicer4Minute1(self):
modMenu = combo.parent().children()[4]
combo.showPopup()
for mActions in modMenu.actions():
if mActions.text == translate("qSlicerAbstractCoreModule","Segmentation") or mActions.text == "Segmentation":
# Only a category opens a submenu. Some languages (e.g. Chinese) give the Segmentations module
# and the Segmentation category the same label, and the module entry comes first in the menu.
if mActions.menu() and (mActions.text == translate("qSlicerAbstractCoreModule","Segmentation") or mActions.text == "Segmentation"):
segAction = mActions
modMenu.setActiveAction(segAction)
mainWindow.moduleSelector().selectModule('MONAIAuto3DSeg')
Expand Down
Loading