Commit 50661f99 authored by hjk's avatar hjk
Browse files

Fixes: fakevim: fix crash when installed on binary editor

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