Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
b2d93536
Commit
b2d93536
authored
Oct 04, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Oct 05, 2022
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectpluginview.cpp
View file @
b2d93536
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment