Skip to content
Snippets Groups Projects
Commit 50661f99 authored by hjk's avatar hjk
Browse files

Fixes: fakevim: fix crash when installed on binary editor

parent 7364cda1
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,10 @@ void FakeVimPluginPrivate::installHandler(Core::IEditor *editor) ...@@ -186,6 +186,10 @@ void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
QWidget *widget = editor->widget(); QWidget *widget = editor->widget();
if (!widget) if (!widget)
return; return;
// we can only handle QTextEdit and QPlainTextEdit
if (!qobject_cast<QTextEdit *>(widget) && !qobject_cast<QPlainTextEdit *>(widget))
return;
FakeVimHandler *handler = new FakeVimHandler(widget, widget); FakeVimHandler *handler = new FakeVimHandler(widget, widget);
......
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