mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Use QString::localeAwareCompare for comparsion
This commit is contained in:
parent
f13c604fbe
commit
b4bdfa7b2b
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void SearchWidget::fillCatCombobox()
|
||||||
QList<QStrPair> tmpList;
|
QList<QStrPair> tmpList;
|
||||||
foreach (const QString &cat, m_searchEngine->supportedCategories())
|
foreach (const QString &cat, m_searchEngine->supportedCategories())
|
||||||
tmpList << qMakePair(SearchEngine::categoryFullName(cat), cat);
|
tmpList << qMakePair(SearchEngine::categoryFullName(cat), cat);
|
||||||
std::sort(tmpList.begin(), tmpList.end(), [](const QStrPair &l, const QStrPair &r) { return (l.first < r.first); } );
|
std::sort(tmpList.begin(), tmpList.end(), [](const QStrPair &l, const QStrPair &r) { return (QString::localeAwareCompare(l.first, r.first) < 0); });
|
||||||
|
|
||||||
foreach (const QStrPair &p, tmpList) {
|
foreach (const QStrPair &p, tmpList) {
|
||||||
qDebug("Supported category: %s", qPrintable(p.second));
|
qDebug("Supported category: %s", qPrintable(p.second));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue