[LyX/master] Further improve UI feedback in child document settings

Juergen Spitzmueller spitz at lyx.org
Sun Jun 28 11:06:33 UTC 2026


commit b687a4c8879e4f5a8ec833d758f28fe50bbb237f
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Jun 28 12:42:29 2026 +0200

    Further improve UI feedback in child document settings
    
    Warn is all children are being selected
---
 src/frontends/qt/GuiDocument.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index 4717dba8e7..3c8b62050c 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -2172,6 +2172,11 @@ void GuiDocument::includeonlyClicked(QTreeWidgetItem * item, int)
 	else
 		includeonlys_.push_back(child);
 
+	if (int(includeonlys_.size()) == masterChildModule->childrenTW->topLevelItemCount())
+		Alert::warning(_("All children selected!"),
+			_("If not at least one child is excluded, "
+			  "this will be reset to 'Include all children' "
+			  "after application."));
 	updateIncludeonlys(false);
 	change_adaptor();
 }


More information about the lyx-cvs mailing list