Skip to content

Commit

Permalink
Fix crash on send options menu show.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 15, 2024
1 parent 913083e commit 70ed43b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Telegram/SourceFiles/menu/menu_send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,14 +752,17 @@ FillMenuResult FillSendMenu(
&icons.menuPrice);
}

return showForEffect
? AttachSendMenuEffect(
if (showForEffect) {
return AttachSendMenuEffect(
menu,
showForEffect,
details,
action,
desiredPositionOverride)
: FillMenuResult::Prepared;
desiredPositionOverride);
}
const auto position = desiredPositionOverride.value_or(QCursor::pos());
menu->prepareGeometryFor(position);
return FillMenuResult::Prepared;
}

void SetupMenuAndShortcuts(
Expand Down

0 comments on commit 70ed43b

Please sign in to comment.