Fix build on Qt 5.* for Windows.

This commit is contained in:
John Preston 2022-12-02 18:31:38 +04:00
parent a4e4681835
commit b5cb2bc9f0

View file

@ -1737,7 +1737,7 @@ QPointer<Ui::BoxContent> ShowForwardMessagesBox(
const auto weak = Ui::MakeWeak(state->box); const auto weak = Ui::MakeWeak(state->box);
if (!chosen(thread)) { if (!chosen(thread)) {
return; return;
} else if (const auto strong = weak.get()) { } else if (const auto strong = weak.data()) {
strong->closeBox(); strong->closeBox();
} }
if (successCallback) { if (successCallback) {