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
55c8ba40
Commit
55c8ba40
authored
Jan 10, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jan 10, 2021
Browse files
Ensure projectPlugin exists before checking path
parent
cf20c309
Changes
1
Show whitespace changes
Inline
Side-by-side
addons/kate-ctags/gotosymbolwidget.cpp
View file @
55c8ba40
...
...
@@ -240,7 +240,6 @@ void GotoSymbolWidget::loadGlobalSymbols(const QString &text)
if
(
text
.
length
()
<
3
||
mode
==
Local
)
return
;
QString
currentWord
=
text
;
Tags
::
TagList
list
=
Tags
::
getPartialMatchesNoi8n
(
m_tagFile
,
currentWord
);
...
...
@@ -271,8 +270,8 @@ void GotoSymbolWidget::slotReturnPressed()
if
(
!
fi
.
exists
())
{
fileFound
=
false
;
QObject
*
projectView
=
m_mainWindow
->
pluginView
(
QStringLiteral
(
"kateprojectplugin"
));
QString
ret
=
projectView
->
property
(
"projectBaseDir"
).
toString
();
if
(
!
ret
.
endsWith
(
QLatin1Char
(
'/'
)))
{
QString
ret
=
projectView
?
projectView
->
property
(
"projectBaseDir"
).
toString
()
:
QString
()
;
if
(
!
ret
.
isEmpty
()
&&
!
ret
.
endsWith
(
QLatin1Char
(
'/'
)))
{
ret
.
append
(
QLatin1Char
(
'/'
));
}
url
=
ret
+
file
;
...
...
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