From 93ab8bd607a1df73a4144ab3f245789c2784bf22 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 31 Jul 2020 05:31:30 +0300 Subject: [PATCH] Allow to search theme editor keys by middle or end --- .../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 573cac4e5..6e90832f5 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp @@ -59,7 +59,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; } }