summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-11-05 18:45:22 +0100
committerMontel Laurent <[email protected]>2017-11-05 18:45:22 +0100
commit2223d17e193893353cdc406f8e83d5402b623311 (patch)
tree94dfa9e472d54b11a76fb3ade036537ec930c388
parent7472fb54487a22a9f69f279b4661fe04e0ddefbf (diff)
Clear menu otherwise we have a big mem leak
-rw-r--r--src/kmmainwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp
index cf0522e..a22e4ec 100644
--- a/src/kmmainwidget.cpp
+++ b/src/kmmainwidget.cpp
@@ -3809,6 +3809,7 @@ void KMMainWidget::updateMessageActionsDelayed()
if (currentMessage.hasFlag(Akonadi::MessageFlags::Encrypted) || count > 1) {
mCopyDecryptedActionMenu->setVisible(true);
+ mCopyDecryptedActionMenu->menu()->clear();
mAkonadiStandardActionManager->standardActionManager()->createActionFolderMenu(
mCopyDecryptedActionMenu->menu(),
Akonadi::StandardActionManager::CopyItemToMenu);