diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index d2f8f03c90..46959ca90b 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -1737,7 +1737,7 @@ QPointer ShowForwardMessagesBox( const auto weak = Ui::MakeWeak(state->box); if (!chosen(thread)) { return; - } else if (const auto strong = weak.get()) { + } else if (const auto strong = weak.data()) { strong->closeBox(); } if (successCallback) {