Skip to content
Snippets Groups Projects
Commit 99d7c63e authored by Jarosław Staniek's avatar Jarosław Staniek
Browse files

Avoid crash in Kexi text editor when text component couldn't be loaded

CCBUG:346373
parent 3989048b
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,8 @@ void KexiEditor::setHighlightMode(const QString& highlightmodename)
{
#ifdef KTEXTEDIT_BASED_SQL_EDITOR
#else
if (!d->doc)
return;
QString n = highlightmodename;
if (n == "javascript" || n == "qtscript")
n = "JavaScript";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment