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.
This commit is contained in:
Levi Neely 2026-07-23 08:52:48 +02:00
parent 1c81cd9cf5
commit 1840a8cea9
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ GitPlusPlusView::GitPlusPlusView(GitPlusPlusPlugin *plugin, KTextEditor::MainWin
// Connect to project plugin for project-switch detection // Connect to project plugin for project-switch detection
QObject *projectPluginView = m_mainWindow->pluginView(QStringLiteral("kateprojectplugin")); QObject *projectPluginView = m_mainWindow->pluginView(QStringLiteral("kateprojectplugin"));
if (projectPluginView) { 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) // Refresh everything when the active view changes (project might have changed)