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
5ffe1058
Commit
5ffe1058
authored
Feb 02, 2021
by
Christoph Cullmann
🐮
Browse files
do the sorting really only once after all sub-parts of the project are loaded
parent
c5ea9136
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectworker.cpp
View file @
5ffe1058
...
...
@@ -39,6 +39,12 @@ void KateProjectWorker::run()
KateProjectSharedQHashStringItem
file2Item
(
new
QHash
<
QString
,
KateProjectItem
*>
());
loadProject
(
topLevel
.
data
(),
m_projectMap
,
file2Item
.
data
());
/**
* sort the stuff once recursively, this is a LOT faster than once sorting the list
* as we have normally not all stuff in on level of directory
*/
topLevel
->
sortChildren
(
0
);
/**
* create some local backup of some data we need for further processing!
*/
...
...
@@ -214,12 +220,6 @@ void KateProjectWorker::loadFilesEntry(QStandardItem *parent, const QVariantMap
for
(
const
auto
&
item
:
qAsConst
(
item2ParentPath
))
{
item
.
second
->
appendRow
(
item
.
first
);
}
/**
* sort the stuff once recursively, this is a LOT faster than once sorting the list
* as we have normally not all stuff in on level of directory
*/
parent
->
sortChildren
(
0
);
}
QStringList
KateProjectWorker
::
findFiles
(
const
QDir
&
dir
,
const
QVariantMap
&
filesEntry
)
...
...
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