Commit f42ea45e authored by Benjamin Port's avatar Benjamin Port
Browse files

Fix default module highlight

Use subcategory model index to find the good module to update. Previous implementation worked for almost every case, but if you have different weight for submodules, updated module data was not the good one
parent d923aeec
......@@ -579,7 +579,8 @@ void SidebarMode::updateDefaults()
// If subcategory exist update from subcategory
if (!item->children().isEmpty()) {
item = item->child(d->activeSubCategoryRow);
auto subCateogryIdx = d->subCategoryModel->index(d->activeSubCategoryRow, 0);
item =<MenuItem*>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment