From 36486a3d7391355414273dd08d683f7bcb6991ae Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 18 Aug 2021 14:52:57 +0300 Subject: [PATCH] Fix creating a theme from a default one. Regression was introduced in 79cc797aff. --- Telegram/SourceFiles/window/themes/window_theme_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor.cpp index e2cf864ca..3261ae3b7 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor.cpp @@ -164,6 +164,7 @@ bool isValidColorValue(QLatin1String value) { skipWhitespacesAndComments(data, end); if (data == end) break; + [[maybe_unused]] auto foundName = base::parse::readName(data, end); skipWhitespacesAndComments(data, end); if (data == end || *data != ':') { return "error";