Commit b2d93536 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Emit projectMapChanged when .kateproject is modified

Atm it is only emitted when switching projects
parent a0e9ad5f
Pipeline #242018 passed with stage
in 12 minutes and 12 seconds
......@@ -323,6 +323,12 @@ QPair<KateProjectView *, KateProjectInfoView *> KateProjectPluginView::viewForPr
m_stackedGitViews->addWidget(gitView);
m_projectsCombo->addItem(QIcon::fromTheme(QStringLiteral("project-open")), project->name(), project->fileName());
m_projectsComboGit->addItem(QIcon::fromTheme(QStringLiteral("project-open")), project->name(), project->fileName());
connect(project, &KateProject::projectMapChanged, this, [this] {
auto widget = m_stackedProjectViews->currentWidget();
if (widget && static_cast<KateProjectView *>(widget)->project() == sender()) {
Q_EMIT projectMapChanged();
}
});
/*
* inform onward
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment