Fix: SidebarMode::loadModule not resetting subCategoryModel parent for modules without a submenu

Loading a top-level module with no children via loadModule() (when we use systemsettings kcm_user it calls loadModule()) left subCategoryModel's parent index unchanged. Reopening the previously active category then passed setParentIndex() the same index as before, causing no model reset, no onCountChanged in SidebarMode.qml, and the submenu page never being re-pushed onto pageStack.

Fix by clearing subCategoryModel's parent index when loading a module with no children. The attached video shows before and after scenes.

bug-524340(before vs after).webm

BUG: 440487 BUG: 514006 BUG: 520397 BUG: 524340 FIXED-IN: 6.6.7

Edited by Nate Graham

Merge request reports

Loading