[pim/trojita] src/Imap/Tasks: Mark signal emission with emit keyword

Espen Sandøy Hustad <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 19d6c9f369fdcfbdeae7534b3ef7245cb5505715 by Espen Sandøy Hustad.
Committed on 09/08/2026 at 08:08.
Pushed by ehustad into branch 'master'.

Mark signal emission with emit keyword

Fix Clazy warning: Missing emit keyword on signal call
QAbstractItemModel::dataChanged [-Wclazy-incorrect-emit]

M  +1    -1    src/Imap/Tasks/UpdateFlagsOfAllMessagesTask.cpp

https://invent.kde.org/pim/trojita/-/commit/19d6c9f369fdcfbdeae7534b3ef7245cb5505715

diff --git a/src/Imap/Tasks/UpdateFlagsOfAllMessagesTask.cpp b/src/Imap/Tasks/UpdateFlagsOfAllMessagesTask.cpp
index d196014c1..dd99ed782 100644
--- a/src/Imap/Tasks/UpdateFlagsOfAllMessagesTask.cpp
+++ b/src/Imap/Tasks/UpdateFlagsOfAllMessagesTask.cpp
@@ -91,7 +91,7 @@ bool UpdateFlagsOfAllMessagesTask::handleStateHelper(const Imap::Responses::Stat
 
                     // emitting dataChanged() separately for each message in the mailbox:
                     // Trojita model assmues that dataChanged is emitted individually
-                    model->dataChanged(messageIndex, messageIndex);
+                    emit model->dataChanged(messageIndex, messageIndex);
                 }
             }
             model->emitMessageCountChanged(mailbox);
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.