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
1dec9c37
Commit
1dec9c37
authored
Jan 07, 2021
by
Waqar Ahmed
Browse files
Also remove the leading slash
parent
36080647
Changes
1
Show whitespace changes
Inline
Side-by-side
kate/katequickopenmodel.cpp
View file @
1dec9c37
...
...
@@ -73,7 +73,7 @@ void KateQuickOpenModel::refresh()
const
QList
<
KTextEditor
::
View
*>
sortedViews
=
m_mainWindow
->
viewManager
()
->
sortedViews
();
const
QList
<
KTextEditor
::
Document
*>
openDocs
=
KateApp
::
self
()
->
documentManager
()
->
documentList
();
const
QStringList
projectDocs
=
projectView
?
(
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectFiles"
)
:
projectView
->
property
(
"allProjectsFiles"
)).
toStringList
()
:
QStringList
();
const
QString
projectBase
=
projectView
?
(
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectBaseDir"
)
:
projectView
->
property
(
"allProjectsCommonBaseDir"
)).
toString
()
:
QString
();
const
QString
projectBase
=
projectView
?
(
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectBaseDir"
)
:
projectView
->
property
(
"allProjectsCommonBaseDir"
)).
toString
()
+
QStringLiteral
(
"/"
)
:
QString
();
QVector
<
ModelEntry
>
allDocuments
;
allDocuments
.
reserve
(
sortedViews
.
size
()
+
openDocs
.
size
()
+
projectDocs
.
size
());
...
...
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