From 1840a8cea9abc180fc6b4419274c67958d61bd8b Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 23 Jul 2026 08:52:48 +0200 Subject: [PATCH] Fix project-switch signal: use projectFileNameChanged The Kate project plugin emits projectFileNameChanged (not projectChanged) when the active project switches. The previous signal name silently failed to connect at runtime. --- gitplusplus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitplusplus.cpp b/gitplusplus.cpp index 338a3d6..f95afc6 100644 --- a/gitplusplus.cpp +++ b/gitplusplus.cpp @@ -548,7 +548,7 @@ GitPlusPlusView::GitPlusPlusView(GitPlusPlusPlugin *plugin, KTextEditor::MainWin // Connect to project plugin for project-switch detection QObject *projectPluginView = m_mainWindow->pluginView(QStringLiteral("kateprojectplugin")); if (projectPluginView) { - connect(projectPluginView, SIGNAL(projectChanged()), this, SLOT(onProjectChanged())); + connect(projectPluginView, SIGNAL(projectFileNameChanged()), this, SLOT(onProjectChanged())); } // Refresh everything when the active view changes (project might have changed)