From c03f13fdd8c0f64c20debf389bc9d54f59fe699d 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 9c0c85cc3..7d97f171e 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; } }