forked from qt-creator/qt-creator
Merge remote branch 'origin/2.1'
Conflicts: doc/qtcreator.qdoc share/qtcreator/templates/mobileapp/app.pro
This commit is contained in:
@@ -491,6 +491,7 @@ public:
|
||||
void aboutToShutdown();
|
||||
|
||||
private slots:
|
||||
void onCoreAboutToClose();
|
||||
void editorOpened(Core::IEditor *);
|
||||
void editorAboutToClose(Core::IEditor *);
|
||||
|
||||
@@ -583,6 +584,13 @@ FakeVimPluginPrivate::~FakeVimPluginPrivate()
|
||||
m_fakeVimExCommandsPage = 0;
|
||||
}
|
||||
|
||||
void FakeVimPluginPrivate::onCoreAboutToClose()
|
||||
{
|
||||
// don't attach to editors any more
|
||||
disconnect(editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
|
||||
this, SLOT(editorOpened(Core::IEditor*)));
|
||||
}
|
||||
|
||||
void FakeVimPluginPrivate::aboutToShutdown()
|
||||
{
|
||||
theFakeVimSettings()->writeSettings(ICore::instance()->settings());
|
||||
@@ -615,6 +623,8 @@ bool FakeVimPluginPrivate::initialize()
|
||||
actionManager()->actionContainer(Core::Constants::M_EDIT_ADVANCED);
|
||||
advancedMenu->addAction(cmd, Core::Constants::G_EDIT_EDITOR);
|
||||
|
||||
connect(m_core, SIGNAL(coreAboutToClose()), this, SLOT(onCoreAboutToClose()));
|
||||
|
||||
// EditorManager
|
||||
connect(editorManager(), SIGNAL(editorAboutToClose(Core::IEditor*)),
|
||||
this, SLOT(editorAboutToClose(Core::IEditor*)));
|
||||
|
||||
Reference in New Issue
Block a user