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
ea4fe985
Commit
ea4fe985
authored
Oct 03, 2020
by
Christoph Cullmann
🐮
Browse files
ensure that even if the url is empty, we create some parent to avoid accessing nullptr parent
BUG: 427270
parent
a2b5f425
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
ea4fe985
...
...
@@ -1030,7 +1030,8 @@ public:
QUrl
lastUrl
;
QStandardItem
*
parent
=
nullptr
;
for
(
const
auto
&
loc
:
locations
)
{
if
(
loc
.
uri
!=
lastUrl
)
{
// ensure we create a parent, if not already there (bug 427270) or we have a different url
if
(
!
parent
||
loc
.
uri
!=
lastUrl
)
{
if
(
parent
)
{
parent
->
setText
(
QStringLiteral
(
"%1: %2"
).
arg
(
lastUrl
.
toLocalFile
()).
arg
(
parent
->
rowCount
()));
}
...
...
Christoph Cullmann
🐮
@cullmann
mentioned in commit
229443cc
·
Oct 04, 2020
mentioned in commit
229443cc
mentioned in commit 229443cc15e61fd23e5d616a46cdc3b36bb1d128
Toggle commit list
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