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:
sniperbeamer
2009-02-26 09:32:14 +00:00
parent 456bb2dc33
commit d569b51e6c
6 changed files with 3038 additions and 3 deletions

View File

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