Commit 9e75f6e1 authored by dt's avatar dt
Browse files

Merge branch '0.9.2-rc1' of into 0.9.2-rc1

parents eab0ff8f 50661f99
......@@ -180,7 +180,16 @@ bool FakeVimPluginPrivate::initialize()
void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
if (!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