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:
parent
1c81cd9cf5
commit
1840a8cea9
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue