Commit 8be1bb81 authored by Felipe Borges's avatar Felipe Borges Committed by Christoph Cullmann
Browse files

Saving only projects that don't have .kateproject file


Signed-off-by: Felipe Borges's avatarFelipe Borges <bumbleblo2013@gmail.com>
parent 6f081680
......@@ -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);
......
Markdown is supported
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