Commit 7157c45d authored by Benjamin Port's avatar Benjamin Port Committed by Nate Graham
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

(cherry picked from commit f42ea45e)
parent f21762d4
......@@ -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