From 0b651c384e46d60e3227b626fb05313dd04350c2 Mon Sep 17 00:00:00 2001 From: Eric Kotato Date: Fri, 16 Jun 2023 02:04:17 +0300 Subject: [PATCH] [Fix] MSVC internal compiler error workaround --- Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index f9ff49817..d2d5b9ef9 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -2619,7 +2619,7 @@ void StickersListWidget::removeMegagroupSet(bool locally) { refreshStickers(); return; } - checkHideWithBox(controller()->show(Ui::MakeConfirmBox({ + auto box = Ui::MakeConfirmBox({ .text = tr::lng_stickers_remove_group_set(), .confirmed = crl::guard(this, [this, group = _megagroupSet]( Fn &&close) { @@ -2633,7 +2633,8 @@ void StickersListWidget::removeMegagroupSet(bool locally) { .cancelled = [](Fn &&close) { close(); }, - }))); + }); + checkHideWithBox(controller()->show(std::move(box))); } void StickersListWidget::removeSet(uint64 setId) {