Skip to content
GitLab
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
36080647
Commit
36080647
authored
Jan 07, 2021
by
Waqar Ahmed
Browse files
Check if projectplugin is available before querying projectBaseDir
parent
f6df3f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katequickopenmodel.cpp
View file @
36080647
...
@@ -73,7 +73,7 @@ void KateQuickOpenModel::refresh()
...
@@ -73,7 +73,7 @@ void KateQuickOpenModel::refresh()
const
QList
<
KTextEditor
::
View
*>
sortedViews
=
m_mainWindow
->
viewManager
()
->
sortedViews
();
const
QList
<
KTextEditor
::
View
*>
sortedViews
=
m_mainWindow
->
viewManager
()
->
sortedViews
();
const
QList
<
KTextEditor
::
Document
*>
openDocs
=
KateApp
::
self
()
->
documentManager
()
->
documentList
();
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
QStringList
projectDocs
=
projectView
?
(
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectFiles"
)
:
projectView
->
property
(
"allProjectsFiles"
)).
toStringList
()
:
QStringList
();
const
QString
projectBase
=
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectBaseDir"
)
.
toString
()
:
projectView
->
property
(
"allProjectsCommonBaseDir"
).
toString
();
const
QString
projectBase
=
projectView
?
(
m_listMode
==
CurrentProject
?
projectView
->
property
(
"projectBaseDir"
)
:
projectView
->
property
(
"allProjectsCommonBaseDir"
)
)
.
toString
()
:
QString
()
;
QVector
<
ModelEntry
>
allDocuments
;
QVector
<
ModelEntry
>
allDocuments
;
allDocuments
.
reserve
(
sortedViews
.
size
()
+
openDocs
.
size
()
+
projectDocs
.
size
());
allDocuments
.
reserve
(
sortedViews
.
size
()
+
openDocs
.
size
()
+
projectDocs
.
size
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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