From 59b25b5f18ce680176918ab8444bf0b60ff0d04d Mon Sep 17 00:00:00 2001 From: ispyisail Date: Fri, 2 Oct 2026 20:23:16 +1300 Subject: [PATCH] Fix bugtracker #344: say why a wire's "show text" box is locked The conductor properties dialog disables the "Texte visible" checkbox when the folio has "Afficher un texte de potentiel par folio" on, but it also hides that option, so nothing told the user why the box could not be ticked. A wire saved with its text off then looked impossible to fix. The locked box's tooltip now names the folio option and where to change it. Co-Authored-By: Claude Opus 5.5 --- sources/ui/conductorpropertieswidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/ui/conductorpropertieswidget.cpp b/sources/ui/conductorpropertieswidget.cpp index 46729cfe7..d8e3e57a6 100644 --- a/sources/ui/conductorpropertieswidget.cpp +++ b/sources/ui/conductorpropertieswidget.cpp @@ -239,6 +239,12 @@ void ConductorPropertiesWidget::setTextLocked(bool locked) */ void ConductorPropertiesWidget::setDisabledShowText(const bool &disable) { ui->m_show_text_cb->setDisabled(disable==true? true : false); + //Say why the box is locked: the setting that locks it is not in this dialog + ui->m_show_text_cb->setToolTip(disable + ? tr("Texte visible\n" + "Verrouillé par l'option « Afficher un texte de potentiel par " + "folio » de ce folio, dans Propriétés du folio.") + : tr("Texte visible")); } /**