Commit 3ddcb70b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix load default theme

parent b9d315a6
......@@ -38,11 +38,13 @@ DefaultGrantleeHeaderStyleInterface::~DefaultGrantleeHeaderStyleInterface()
void DefaultGrantleeHeaderStyleInterface::createAction(KActionMenu *menu, QActionGroup *actionGroup, KActionCollection *ac)
{
const QStringList defaultThemePath = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("messageviewer/defaultthemes/"), QStandardPaths::LocateDirectory);
if (!defaultThemePath.isEmpty()) {
const QString themeName = DefaultGrantleeHeaderStylePluginSettings::self()->themeName();
mDefaultTheme = GrantleeTheme::ThemeManager::loadTheme(defaultThemePath.at(0),
QStringLiteral("kmail"),
QStringLiteral("kmail_theme"));
themeName,
QStringLiteral("kmail_default.desktop"));
}
KToggleAction *act = new KToggleAction(mDefaultTheme.name(), this);
......
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