Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SDK
Cervisia
Commits
dc59382e
Commit
dc59382e
authored
Jan 11, 2003
by
André Wöbbeking
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified updateItem() a bit (the creation of new items).
svn path=/trunk/kdesdk/cervisia/; revision=198956
parent
0fe81146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
updateview.cpp
updateview.cpp
+5
-9
No files found.
updateview.cpp
View file @
dc59382e
...
...
@@ -1217,18 +1217,14 @@ void UpdateView::updateItem(const QString &name, Status status, bool isdir)
// the missing leaves. longestmatch is the directory item where we have to attach
kdDebug
()
<<
"longest match: "
<<
longestmatchPath
<<
endl
;
kdDebug
()
<<
"leaves: "
<<
dirpath
.
mid
(
longestmatchPath
.
length
())
<<
endl
;
QStringList
leaves
=
QStringList
::
split
(
'/'
,
dirpath
.
mid
(
longestmatchPath
.
length
()));
for
(
int
i
=
0
;
i
<
(
int
)
leaves
.
count
();
++
i
)
const
QStringList
&
leaves
(
QStringList
::
split
(
'/'
,
dirpath
.
mid
(
longestmatchPath
.
length
())));
QString
newFileName
(
longestmatchPath
);
for
(
QStringList
::
ConstIterator
it
(
leaves
.
begin
());
it
!=
leaves
.
end
();
++
it
)
{
QString
newFileName
=
longestmatchPath
;
for
(
int
j
=
0
;
j
<
i
;
++
j
)
{
newFileName
+=
leaves
[
j
];
newFileName
+=
'/'
;
}
newFileName
+=
leaves
[
i
];
newFileName
+=
*
it
;
kdDebug
()
<<
"add missing "
<<
newFileName
<<
endl
;
updateItem
(
newFileName
,
Unknown
,
true
);
newFileName
+=
'/'
;
}
// Recursive, but now it should work
updateItem
(
name
,
status
,
isdir
);
...
...
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