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
8be1bb81
Commit
8be1bb81
authored
Feb 22, 2022
by
Felipe Borges
Committed by
Christoph Cullmann
Mar 11, 2022
Browse files
Saving only projects that don't have .kateproject file
Signed-off-by:
Felipe Borges
<
bumbleblo2013@gmail.com
>
parent
6f081680
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectplugin.cpp
View file @
8be1bb81
...
...
@@ -5,8 +5,6 @@
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include
<iostream>
#include
"kateprojectplugin.h"
#include
"kateproject.h"
...
...
@@ -591,7 +589,9 @@ void KateProjectPlugin::writeSessionConfig(KConfigGroup &config)
QStringList
projectList
;
for
(
KateProject
*
project
:
projects
())
{
projectList
.
push_back
(
project
->
baseDir
());
if
(
project
->
fileName
().
isEmpty
())
{
projectList
.
push_back
(
project
->
baseDir
());
}
}
config
.
writeEntry
(
"projects"
,
projectList
);
...
...
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