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
Education
Cantor
Commits
b06eae3b
Commit
b06eae3b
authored
Jun 23, 2021
by
Alexander Semke
Browse files
Properly handle the wildcard character also when removing the downloaded documentation.
parent
b2580974
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/qthelpconfig.cpp
View file @
b06eae3b
...
...
@@ -227,15 +227,17 @@ void QtHelpConfig::knsUpdate(const KNS3::Entry::List& list)
m_treeWidget
->
setCurrentItem
(
item
);
}
}
else
if
(
e
.
status
()
==
KNS3
::
Entry
::
Deleted
)
{
// cmp. note above for installed files
if
(
e
.
uninstalledFiles
().
size
()
>=
1
)
{
for
(
int
i
=
0
;
i
<
m_treeWidget
->
topLevelItemCount
();
i
++
)
{
const
auto
*
item
=
m_treeWidget
->
topLevelItem
(
i
);
if
(
e
.
uninstalledFiles
().
at
(
0
)
==
item
->
text
(
PathColumn
))
{
delete
item
;
break
;
}
else
if
(
e
.
status
()
==
KNS3
::
Entry
::
Deleted
&&
e
.
uninstalledFiles
().
size
()
>
0
)
{
//determine the path for the qch file
QString
path
=
e
.
uninstalledFiles
().
at
(
0
);
path
.
chop
(
1
);
//remove '*' at the end
//delete the corresponding item in the table
for
(
int
i
=
0
;
i
<
m_treeWidget
->
topLevelItemCount
();
i
++
)
{
const
auto
*
item
=
m_treeWidget
->
topLevelItem
(
i
);
if
(
item
->
text
(
PathColumn
).
startsWith
(
path
))
{
delete
item
;
break
;
}
}
}
...
...
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