Commit 27b8f182 authored by David Edmundson's avatar David Edmundson
Browse files

Fix crash when loading a top level entry from system settings home page

Summary: BUG: 416227

Test Plan: Clicked "look and feel" from the home screen

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 01cecb16
......@@ -537,7 +537,7 @@ void SidebarMode::loadModule( const QModelIndex& activeModule )
MenuItem *parentMi = idx.parent().data(MenuModel::MenuItemRole).value<MenuItem *>();
if (idx.isValid()) {
if (parentMi->menu()) {
if (parentMi && parentMi->menu()) {
d->subCategoryModel->setParentIndex( idx.parent() );
d->activeCategoryRow = idx.parent().row();
d->activeSubCategoryRow = idx.row();
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