From 305e0bc8f7e22f6bbc570dec31291e4dcf869e86 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 05:25:12 +0300 Subject: [PATCH] [Improvement] Theme editor search improvements --- .../SourceFiles/window/themes/window_theme_editor_block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp index 24a4b8e7d..e8cb55752 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp @@ -63,7 +63,7 @@ public: } bool searchWordsContain(const QString &needle) const { for (const auto &word : _searchWords) { - if (word.startsWith(needle)) { + if (word.contains(needle, Qt::CaseInsensitive)) { return true; } }