Commit 49fcaeb1 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Avoid copying model entry in quickopenmodel

parent 254d2a0b
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment