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

This commit is contained in:
hjk
2009-02-04 16:42:55 +01:00
parent 71e7fa77fb
commit 7693d44876

View File

@@ -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);