From d3fdfe4b29e689de0e9269a385d61f1979c2f800 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Jan 2024 21:09:45 +0400 Subject: [PATCH] Fix crash in themes editor. Fixes #27366. --- .../SourceFiles/window/themes/window_theme_editor_block.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp index bd1e5c311..9c0c85cc3 100644 --- a/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme_editor_block.cpp @@ -331,9 +331,8 @@ void EditorBlock::activateRow(const Row &row) { const auto state = editor->lifetime().make_state(); const auto save = crl::guard(this, [=] { - saveEditing(editor->color()); state->cancelLifetime.destroy(); - box->closeBox(); + saveEditing(editor->color()); }); box->boxClosing( ) | rpl::start_with_next(crl::guard(this, [=] {