From ae9a8414d21a292e6e22d5170bcb5524d6e62849 Mon Sep 17 00:00:00 2001 From: forbes Date: Fri, 13 Feb 2026 14:08:22 -0600 Subject: [PATCH] cherry-pick #18: document-origin tracking in window title (015df38328c) --- src/Gui/MDIView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Gui/MDIView.cpp b/src/Gui/MDIView.cpp index 00de2e5f5d..7147fd5591 100644 --- a/src/Gui/MDIView.cpp +++ b/src/Gui/MDIView.cpp @@ -44,7 +44,9 @@ #include "Application.h" #include "Document.h" #include "FileDialog.h" +#include "FileOrigin.h" #include "MainWindow.h" +#include "OriginManager.h" #include "ViewProviderDocumentObject.h" @@ -522,6 +524,13 @@ QString MDIView::buildWindowTitle() const QString windowTitle; if (auto document = getAppDocument()) { windowTitle.append(QString::fromStdString(document->Label.getStrValue())); + + // Append origin suffix for non-local origins + FileOrigin* origin = OriginManager::instance()->originForDocument(document); + if (origin && origin->type() != OriginType::Local) { + windowTitle.append(QStringLiteral(" [%1]") + .arg(QString::fromStdString(origin->nickname()))); + } } return windowTitle;