Commit 24aef0ae authored by hjk's avatar hjk
Browse files

Fixes: fakevim: link fix

    Details:  the installHandler() overload was missing an implementation
parent a9054512
......@@ -114,7 +114,7 @@ private slots:
void editorOpened(Core::IEditor *);
void editorAboutToClose(Core::IEditor *);
void installHandler();
void installHandlerOnCurrentEditor();
void installHandler(Core::IEditor *editor);
void removeHandler();
......@@ -171,7 +171,7 @@ bool FakeVimPluginPrivate::initialize()
advancedMenu->addAction(cmd, Core::Constants::G_EDIT_EDITOR);
connect(m_installHandlerAction, SIGNAL(triggered()),
this, SLOT(installHandler()));
this, SLOT(installHandlerOnCurrentEditor()));
// EditorManager
QObject *editorManager = m_core->editorManager();
......@@ -221,6 +221,11 @@ void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
}
}
void FakeVimPluginPrivate::installHandlerOnCurrentEditor()
{
installHandler(EditorManager::instance()->currentEditor());
}
void FakeVimPluginPrivate::writeFile(bool *handled,
const QString &fileName, const QString &contents)
{
......
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