Commit b3357ee6 authored by Laurent Montel's avatar Laurent Montel 😁

Signal when we can't find definition

parent 28042084
......@@ -48,6 +48,9 @@ SieveDebugDialog::SieveDebugDialog(SieveImapPasswordProvider *passwordProvider,
mEdit->setReadOnly(true);
KSyntaxHighlighting::Definition def;
def = mRepo.definitionForName(QStringLiteral("Sieve"));
if (!def.isValid()) {
qCWarning(LIBKSIEVE_LOG) << "Invalid definition name";
}
KSyntaxHighlighting::SyntaxHighlighter *hl = new KSyntaxHighlighting::SyntaxHighlighter(mEdit->editor()->document());
hl->setTheme((palette().color(QPalette::Base).lightness() < 128)
......
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