forked from qt-creator/qt-creator
Fixes: fakevim: fix crash when trying to install on empty editor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user