Skip to content
GitLab
Menu
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
29ab65b3
Commit
29ab65b3
authored
Feb 02, 2021
by
Christoph Cullmann
🐮
Browse files
fix the evaluation of hard coded list: [filename, ...] projects
parent
77a61d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectworker.cpp
View file @
29ab65b3
...
...
@@ -292,6 +292,15 @@ QStringList KateProjectWorker::findFiles(const QDir &dir, const QVariantMap &fil
*/
QStringList
userGivenFilesList
=
filesEntry
[
QStringLiteral
(
"list"
)].
toStringList
();
if
(
!
userGivenFilesList
.
empty
())
{
/**
* make the files absolute relative to current dir
* all code later requires this and the filesFrom... routines do this, too, internally
* even without this, the tree views will show them, but opening them will create new elements!
*/
for
(
auto
&
file
:
userGivenFilesList
)
{
file
=
dir
.
absoluteFilePath
(
file
);
}
/**
* users might have specified duplicates, this can't happen for the other ways
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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