Commit 5797b63e authored by Laurent Montel's avatar Laurent Montel 😁

Fix load default plugin

parent c9a51408
......@@ -46,10 +46,10 @@ void DefaultGrantleeHeaderStyleInterface::createAction(KActionMenu *menu, QActio
themeName,
QStringLiteral("kmail_default.desktop"));
}
mHeaderStylePlugin->headerStyle()->setTheme(mDefaultTheme);
KToggleAction *act = new KToggleAction(mDefaultTheme.name(), this);
ac->addAction(QStringLiteral("default_grantlee_theme"), act);
connect(act, &KToggleAction::triggered, this, &DefaultGrantleeHeaderStyleInterface::slotStyleChanged);
connect(act, &KToggleAction::triggered, this, &DefaultGrantleeHeaderStyleInterface::slotDefaultGrantleeHeaders);
mAction.append(act);
addActionToMenu(menu, actionGroup);
}
......
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