summaryrefslogtreecommitdiffstats
path: root/src/messagedetailsdialog.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-14 18:02:38 +0200
committerDanilo M. <danix@danix.xyz>2026-08-14 18:02:38 +0200
commit612eb64871de7e00f21a9b7ebf33d8179caa16bc (patch)
treec92f928df38ae87fd233967301e01c6ef5b4dcd6 /src/messagedetailsdialog.cpp
parent78b3a9c1769d37ff7344360b6fed66b12b2f0649 (diff)
downloadqtmaildir-612eb64871de7e00f21a9b7ebf33d8179caa16bc.tar.gz
qtmaildir-612eb64871de7e00f21a9b7ebf33d8179caa16bc.zip
feat(search): push the query bar's emptiness into the panes
The menus cannot read the query bar and must not. MainWindow already watched textChanged for the Save button; the same lambda now also tells MessageView, which passes it to the details dialog at construction, where it cannot go stale. Nothing consumes it yet. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/messagedetailsdialog.cpp')
-rw-r--r--src/messagedetailsdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messagedetailsdialog.cpp b/src/messagedetailsdialog.cpp
index e487270..e862fce 100644
--- a/src/messagedetailsdialog.cpp
+++ b/src/messagedetailsdialog.cpp
@@ -30,8 +30,8 @@
#include "searchterm.h"
MessageDetailsDialog::MessageDetailsDialog(const QList<ThreadRenderItem> &items,
- QWidget *parent)
- : QDialog(parent)
+ bool hasQuery, QWidget *parent)
+ : QDialog(parent), m_hasQuery(hasQuery)
{
setWindowTitle(tr("Message details"));
setObjectName(QStringLiteral("messageDetailsDialog"));