searching is now case insensitive

This commit is contained in:
fourtf
2018-01-07 00:05:32 +01:00
parent 6fec6514fa
commit a32d1c063c
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -76,7 +76,9 @@ void SearchPopup::performSearch()
for (size_t i = 0; i < this->snapshot.getLength(); i++) {
messages::SharedMessage message = this->snapshot[i];
if (text.isEmpty() || message->getContent().indexOf(this->searchInput->text()) != -1) {
if (text.isEmpty() ||
message->getContent().indexOf(this->searchInput->text(), 0, Qt::CaseInsensitive) !=
-1) {
channel->addMessage(message);
}
}