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
49fcaeb1
Commit
49fcaeb1
authored
Feb 05, 2021
by
Waqar Ahmed
Browse files
Avoid copying model entry in quickopenmodel
parent
254d2a0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/quickopen/katequickopenmodel.cpp
View file @
49fcaeb1
...
...
@@ -43,7 +43,7 @@ QVariant KateQuickOpenModel::data(const QModelIndex &idx, int role) const
return
{};
}
auto
entry
=
m_modelEntries
.
at
(
idx
.
row
());
const
ModelEntry
&
entry
=
m_modelEntries
.
at
(
idx
.
row
());
if
(
role
==
Qt
::
DisplayRole
)
{
switch
(
idx
.
column
())
{
case
Columns
::
FileName
:
...
...
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