Commit 3fd04c23 authored by con's avatar con
Browse files

Fix usage of shutdown methods in FakeVim.

Reviewed-by: hjk
parent d5ef5304
......@@ -557,20 +557,20 @@ FakeVimPluginPrivate::FakeVimPluginPrivate(FakeVimPlugin *plugin)
}
FakeVimPluginPrivate::~FakeVimPluginPrivate()
{
}
void FakeVimPluginPrivate::aboutToShutdown()
{
q->removeObject(m_fakeVimOptionsPage);
delete m_fakeVimOptionsPage;
m_fakeVimOptionsPage = 0;
theFakeVimSettings()->writeSettings(Core::ICore::instance()->settings());
delete theFakeVimSettings();
q->removeObject(m_fakeVimExCommandsPage);
delete m_fakeVimExCommandsPage;
m_fakeVimExCommandsPage = 0;
}
void FakeVimPluginPrivate::aboutToShutdown()
{
theFakeVimSettings()->writeSettings(Core::ICore::instance()->settings());
writeSettings(Core::ICore::instance()->settings());
}
......
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