From 20a0a888c75194e4d87e179ed965cdaccd5a276a Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sat, 12 Sep 2026 13:50:03 +1200 Subject: [PATCH] Fix command-line tools hanging on the table limitation dialog When a placed nomenclature or summary table cannot display every row its model holds, checkInsufficientRowsCount() informs the user with a modal message box. It used QMessageBox directly rather than QET::QetMessageBox, so it ignored the non-interactive mode that main.cpp sets for the command-line verbs, and every headless verb (--info, --resave, --export-*) blocked forever on a dialog nobody could answer. This is the same defect fixed in e3d11a499 for the other modals reachable from the command line; this call site was missed. Found with a gdb backtrace on a hung --info: the process was parked in QDialog::exec() under this function. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01L6MRq2Ach1ogvnGcbuqNLr --- sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp index 49e57bf68..fd9bbe6ba 100644 --- a/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp +++ b/sources/qetgraphicsitem/ViewItem/qetgraphicstableitem.cpp @@ -21,6 +21,7 @@ #include "../../createdxf.h" #include "../../diagram.h" #include "../../elementprovider.h" +#include "../../qetmessagebox.h" #include "../../qetxml.h" #include "../../utils/qetutils.h" #include "projectdbmodel.h" @@ -119,7 +120,7 @@ void QetGraphicsTableItem::checkInsufficientRowsCount( text = tr("Les information à afficher sont supérieurs à la quantité maximal pouvant être affiché par le tableau.\n" "Veuillez ajouter un nouveau tableau ou regler le tableau existant afin d'afficher l'integralité des informations."); } - QMessageBox::information(parent, tr("Limitation de tableau"), text); + QET::QetMessageBox::information(parent, tr("Limitation de tableau"), text); } }