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
SDK
Dolphin Plugins
Commits
0824365b
Commit
0824365b
authored
Oct 11, 2020
by
Alexander Lohnau
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify logic of file reading
parent
3b387830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
hg/fileviewhgplugin.cpp
hg/fileviewhgplugin.cpp
+2
-5
No files found.
hg/fileviewhgplugin.cpp
View file @
0824365b
...
...
@@ -361,12 +361,9 @@ KVersionControlPlugin::ItemVersion FileViewHgPlugin::itemVersion(const KFileItem
// will disable the context menu there. Will enable recursive
// add however.
QDir
dir
(
item
.
localPath
());
const
QStringList
filesInside
=
dir
.
entryList
();
const
QStringList
filesInside
=
dir
.
entryList
(
QDir
::
AllEntries
|
QDir
::
NoDotAndDotDot
);
for
(
const
QString
&
fileName
:
filesInside
)
{
if
(
fileName
==
"."
||
fileName
==
".."
)
{
continue
;
}
QUrl
tempUrl
(
dir
.
absoluteFilePath
(
fileName
));
const
QUrl
tempUrl
(
dir
.
absoluteFilePath
(
fileName
));
KFileItem
tempFileItem
(
tempUrl
);
if
(
itemVersion
(
tempFileItem
)
==
NormalVersion
)
{
return
NormalVersion
;
...
...
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