Commit 313831f8 authored by Benjamin Port's avatar Benjamin Port
Browse files

Clean up subcategory model when going to home screen

Fix a bug when we click an item with subcategory then click home and click again same item, subcategory view was not displayed
parent 6cc205e3
......@@ -610,6 +610,7 @@ void SidebarMode::setIntroPageVisible(const bool &introPageVisible)
}
} else {
if (introPageVisible) {
d->subCategoryModel->setParentIndex(QModelIndex());
d->activeCategoryRow = -1;
emit activeCategoryRowChanged();
d->activeSubCategoryRow = -1;
......
Markdown is supported
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