summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Burgess <pete.burgess@isode.com>2018-05-02 11:54:25 (GMT)
committerPeter Burgess <pete.burgess@isode.com>2018-05-02 14:01:11 (GMT)
commit288783ebcce760bc43a1fe5156edbf7525268c67 (patch)
treea49dbdafd0400fb3db4954fd1de80d8cb5b4e1af /Swift/QtUI
parenta6101ef26599862a4610f7d0fd650145daba5bb4 (diff)
downloadswift-288783ebcce760bc43a1fe5156edbf7525268c67.zip
swift-288783ebcce760bc43a1fe5156edbf7525268c67.tar.bz2
Make new roster's sort case insensitive
The new roster design (behind future setting) is showing the contact list with case sensitivity. This patch makes it case insensitive. Test-Information: I have tested it on my test server, created several contacts whose names in my roster start with either a lowercase or uppercase "u". The patch puts them in the expected order. Change-Id: Iaba812454eba8282745e1df5b621c0d7ff0fb93f
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatOverviewBundle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatOverviewBundle.cpp b/Swift/QtUI/QtChatOverviewBundle.cpp
index 4e7c023..bf99b0c 100644
--- a/Swift/QtUI/QtChatOverviewBundle.cpp
+++ b/Swift/QtUI/QtChatOverviewBundle.cpp
@@ -26,6 +26,7 @@ namespace Swift {
BundleFilter::BundleFilter(QObject* parent) : QSortFilterProxyModel(parent) {
sort(0, Qt::AscendingOrder);
setDynamicSortFilter(true);
+ setSortCaseSensitivity(Qt::CaseSensitivity::CaseInsensitive);
}
void BundleFilter::addFilter(Filter filter) {