Merge pull request #8087 from sledgehammer999/fix_flag_sorting

Fix sorting of country flags column in Peers tab.
This commit is contained in:
sledgehammer999
2017-12-23 19:15:44 +02:00
committed by GitHub
5 changed files with 9 additions and 29 deletions

View File

@@ -53,17 +53,11 @@ protected:
const QString strL = left.data().toString();
const QString strR = right.data().toString();
const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive);
if (result != 0)
return (result < 0);
return (left < right);
}
return (result < 0);
}
break;
default:
if (left.data() != right.data())
return QSortFilterProxyModel::lessThan(left, right);
return (left < right);
return QSortFilterProxyModel::lessThan(left, right);
};
}
};