[pim/kmail] src/undosend: Fix logic, str is always true we need to compare to To

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 052c72f57adf54f4064fa0f200e13ac8d81b6231 by Laurent Montel.
Committed on 13/08/2026 at 20:11.
Pushed by mlaurent into branch 'master'.

Fix logic, str is always true we need to compare to To

M  +1    -1    src/undosend/undosendmanager.cpp

https://invent.kde.org/pim/kmail/-/commit/052c72f57adf54f4064fa0f200e13ac8d81b6231

diff --git a/src/undosend/undosendmanager.cpp b/src/undosend/undosendmanager.cpp
index 55740d135..2a2688891 100644
--- a/src/undosend/undosendmanager.cpp
+++ b/src/undosend/undosendmanager.cpp
@@ -43,7 +43,7 @@ QString UndoSendManager::UndoSendManagerInfo::generateMessageInfoText() const
         str += i18n("<b>To:</b> %1", to);
     }
     if (!subject.isEmpty()) {
-        if (!str.isEmpty()) {
+        if (!to.isEmpty()) {
             str += QStringLiteral("<br />");
         }
         str += i18n("<b>Subject:</b> %1", subject);
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.