Add Finish translation
Sort groups locale aware git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@274 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -568,8 +568,8 @@ bool GroupViewItem::operator<(const QTreeWidgetItem& other) const {
|
||||
// Backup group is always at the bottom but above search results
|
||||
if (!parent() && text(0).compare("Backup", Qt::CaseInsensitive) == 0)
|
||||
return false;
|
||||
if (!otherItem->parent() && otherItem->text(0).compare("Backup", Qt::CaseInsensitive) == 0)
|
||||
if (!other.parent() && other.text(0).compare("Backup", Qt::CaseInsensitive) == 0)
|
||||
return true;
|
||||
|
||||
return QTreeWidgetItem::operator<(other);
|
||||
return QString::localeAwareCompare(text(0), other.text(0)) < 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user