From 80fed27b4ea6322f8ac2ad26b8e5701ff1e2c3ad Mon Sep 17 00:00:00 2001 From: Tal Neoran Date: Fri, 4 Jun 2021 13:51:35 +0300 Subject: [PATCH] Search in viewer list by contained term (#2861) Searching for users in the viewer list now searches anywhere in the user's name - instead of just searching at the beginning of the username. --- CHANGELOG.md | 1 + src/widgets/splits/Split.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29a30b61..5c8cc612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unversioned - Major: Added ability to toggle visibility of Channel Tabs - This can be done by right-clicking the tab area or pressing the keyboard shortcut (default: Ctrl+U). (#2600) +- Minor: Searching for users in the viewer list now searches anywhere in the user's name. (#2861) - Minor: Added moderation buttons to search popup when searching in a split with moderation mode enabled. (#2148, #2803) - Minor: Made "#channel" in `/mentions` tab show in usercards and in the search popup. (#2802) - Minor: Added settings to disable custom FrankerFaceZ VIP/mod badges. (#2693, #2759) diff --git a/src/widgets/splits/Split.cpp b/src/widgets/splits/Split.cpp index 897bf511..be3e5076 100644 --- a/src/widgets/splits/Split.cpp +++ b/src/widgets/splits/Split.cpp @@ -722,7 +722,7 @@ void Split::showViewerList() auto query = searchBar->text(); if (!query.isEmpty()) { - auto results = chattersList->findItems(query, Qt::MatchStartsWith); + auto results = chattersList->findItems(query, Qt::MatchContains); chattersList->hide(); resultList->clear(); for (auto &item : results)