mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Version 4.2.3: Fix possible crash in premium section.
This commit is contained in:
parent
4c276e2357
commit
073c1a4d0f
1 changed files with 4 additions and 1 deletions
|
@ -1650,7 +1650,10 @@ QPointer<Ui::RpWidget> Premium::createPinnedToBottom(
|
|||
_radioGroup->setChangedCallback([=](int value) {
|
||||
const auto options =
|
||||
_controller->session().api().premium().subscriptionOptions();
|
||||
Expects(value < options.size() && value >= 0);
|
||||
if (options.empty()) {
|
||||
return;
|
||||
}
|
||||
Assert(value < options.size() && value >= 0);
|
||||
auto text = tr::lng_premium_subscribe_button(
|
||||
tr::now,
|
||||
lt_cost,
|
||||
|
|
Loading…
Add table
Reference in a new issue