From ee36073428b6f9a4e37012fa442baea4f01df803 Mon Sep 17 00:00:00 2001 From: Andre Rummler Date: Wed, 5 Aug 2026 10:54:31 +0200 Subject: [PATCH] Fix DiagramView window title not updating (missed rename from 27dcd5e) 27dcd5e renamed BorderTitleBlock::diagramTitleChanged to informationChanged and updated diagram.cpp accordingly, but diagramview.cpp still used the old string-based SIGNAL()/SLOT() macro referencing the removed signal name, which failed silently at runtime instead of at compile time. The diagram/window title never refreshed after title block changes. Observed when going through the warnings. Updated the connect to use informationChanged with modern pointer-to-member syntax, matching diagram.cpp's own connect to the same signal. --- sources/diagramview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index 3d82ca7f4..427ad0634 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -100,7 +100,7 @@ DiagramView::DiagramView(Diagram *diagram, QWidget *parent) : connect(m_diagram, SIGNAL(showDiagram(Diagram*)), this, SIGNAL(showDiagram(Diagram*))); connect(m_diagram, SIGNAL(sceneRectChanged(QRectF)), this, SLOT(adjustSceneRect())); - connect(&(m_diagram -> border_and_titleblock), SIGNAL(diagramTitleChanged(const QString &)), this, SLOT(updateWindowTitle())); + connect(&(m_diagram -> border_and_titleblock), &BorderTitleBlock::informationChanged, this, &DiagramView::updateWindowTitle); connect(diagram, SIGNAL(findElementRequired(ElementsLocation)), this, SIGNAL(findElementRequired(ElementsLocation))); QShortcut *edit_conductor_color_shortcut = new QShortcut(QKeySequence(Qt::Key_F2), this);