Commit 9867b7b5 authored by mae's avatar mae
Browse files

sort open editors based on displayName() not full file path

parent 6746a873
......@@ -138,8 +138,9 @@ void EditorModel::addEntry(const Entry &entry)
}
int index;
QString displayName = entry.displayName();
for (index = 0; index < m_editors.count(); ++index) {
if (fileName < m_editors.at(index).fileName())
if (displayName < m_editors.at(index).displayName())
break;
}
......
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