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