From 0c9914b17e3377090a8d9c484c21f79924a09875 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 24 Feb 2011 13:33:26 +0100 Subject: [PATCH] fakevim: fix leaking commanditems --- src/plugins/fakevim/fakevimplugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index d43c9f90b7f..a0bac2c5e7b 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -298,6 +298,7 @@ class FakeVimExCommandsPage : public Core::CommandMappings public: FakeVimExCommandsPage(FakeVimPluginPrivate *q) : m_q(q) {} + ~FakeVimExCommandsPage() { qDeleteAll(m_citems); } // IOptionsPage QString id() const { return _(Constants::SETTINGS_EX_CMDS_ID); } @@ -331,9 +332,7 @@ QWidget *FakeVimExCommandsPage::createPage(QWidget *parent) setTargetHeader(tr("Ex Trigger Expression")); setTargetLabelText(tr("Regular expression:")); setTargetEditTitle(tr("Ex Command")); - setImportExportEnabled(false); - return w; }