From 288783ebcce760bc43a1fe5156edbf7525268c67 Mon Sep 17 00:00:00 2001
From: Peter Burgess <pete.burgess@isode.com>
Date: Wed, 2 May 2018 12:54:25 +0100
Subject: 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

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) {
-- 
cgit v0.10.2-6-g49f6