From 612eb64871de7e00f21a9b7ebf33d8179caa16bc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 14 Aug 2026 18:02:38 +0200 Subject: 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 --- src/messagedetailsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/messagedetailsdialog.cpp') 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 &items, - QWidget *parent) - : QDialog(parent) + bool hasQuery, QWidget *parent) + : QDialog(parent), m_hasQuery(hasQuery) { setWindowTitle(tr("Message details")); setObjectName(QStringLiteral("messageDetailsDialog")); -- cgit v1.2.3