[pim/kmail] src: Add addMsgToMoveAction

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 511e74dbeeb69618607128a25c14ffa23eac4dce by Laurent Montel.
Committed on 27/07/2026 at 05:45.
Pushed by mlaurent into branch 'master'.

Add addMsgToMoveAction

M  +4    -2    src/kmundoredomanager.cpp

https://invent.kde.org/pim/kmail/-/commit/511e74dbeeb69618607128a25c14ffa23eac4dce

diff --git a/src/kmundoredomanager.cpp b/src/kmundoredomanager.cpp
index 148c8de75..3898b6965 100644
--- a/src/kmundoredomanager.cpp
+++ b/src/kmundoredomanager.cpp
@@ -45,8 +45,10 @@ QUndoCommand *KMUndoRedoManager::newUndoMoveAction(const Akonadi::Collection &sr
 
 void KMUndoRedoManager::addMsgToMoveAction(QUndoCommand *command, const Akonadi::Item &item)
 {
-    // TODO push push()
-    // TODO
+    KMUndoInfoMoveItems *commandUndoInfoMoveItems = dynamic_cast<KMUndoInfoMoveItems *>(command);
+    if (commandUndoInfoMoveItems) {
+        commandUndoInfoMoveItems->addItem(item);
+    }
 }
 
 KMUndoInfoMoveItems::KMUndoInfoMoveItems(KMUndoRedoManager *manager, QUndoCommand *parent)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.