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

Fixes: fakevim: fix crash when installed on binary editor

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