Correctly refresh layout list if all were deleted

parent 5f11bb1e
......@@ -83,11 +83,11 @@ void LayoutManagement::initializeLayouts()
layoutGroup2.copyTo(&layoutGroup);
}
}
m_loadLayout->clear();
if (!layoutGroup.exists()) {
return;
}
QStringList entries = layoutGroup.keyList();
m_loadLayout->clear();
KActionCategory *layoutActions = new KActionCategory(i18n("Layouts"), pCore->window()->actionCollection());
int i = 1;
for (const QString &layoutName : entries) {
......
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