Commit 7693d448 authored by hjk's avatar hjk
Browse files

Fixes: fakevim: fix crash when trying to install on empty editor

parent 71e7fa77
......@@ -180,7 +180,12 @@ bool FakeVimPluginPrivate::initialize()
void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
{
if (!editor)
return;
QWidget *widget = editor->widget();
if (!widget)
return;
FakeVimHandler *handler = new FakeVimHandler(widget, widget);
......
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