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

This commit is contained in:
mae
2009-04-02 17:43:44 +02:00
parent 6746a87365
commit 9867b7b5e3

View File

@@ -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;
}