Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
System
Dolphin
Commits
1c2fbdef
Commit
1c2fbdef
authored
Nov 05, 2020
by
Méven Car
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KDirectoryContentsCounter: fix support of symlinks dir
BUG: 428712 FIXED-IN: 20.12
parent
465e0613
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/kitemviews/private/kdirectorycontentscounter.cpp
src/kitemviews/private/kdirectorycontentscounter.cpp
+4
-3
No files found.
src/kitemviews/private/kdirectorycontentscounter.cpp
View file @
1c2fbdef
...
...
@@ -115,7 +115,7 @@ void KDirectoryContentsCounter::slotResult(const QString& path, int count, long
}
// sends the results
Q_EMIT
result
(
resolvedP
ath
,
count
,
size
);
Q_EMIT
result
(
p
ath
,
count
,
size
);
}
void
KDirectoryContentsCounter
::
slotDirWatchDirty
(
const
QString
&
path
)
...
...
@@ -160,11 +160,12 @@ void KDirectoryContentsCounter::slotItemsRemoved()
void
KDirectoryContentsCounter
::
startWorker
(
const
QString
&
path
)
{
const
bool
alreadyInCache
=
s_cache
->
contains
(
path
);
const
QString
resolvedPath
=
QFileInfo
(
path
).
canonicalFilePath
();
const
bool
alreadyInCache
=
s_cache
->
contains
(
resolvedPath
);
if
(
alreadyInCache
)
{
// fast path when in cache
// will be updated later if result has changed
const
auto
pair
=
s_cache
->
value
(
p
ath
);
const
auto
pair
=
s_cache
->
value
(
resolvedP
ath
);
Q_EMIT
result
(
path
,
pair
.
first
,
pair
.
second
);
}
...
...
Write
Preview
Markdown
is supported
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