mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
_radioGroup->setChangedCallback([=](int value) {
|
||||||
const auto options =
|
const auto options =
|
||||||
_controller->session().api().premium().subscriptionOptions();
|
_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(
|
auto text = tr::lng_premium_subscribe_button(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_cost,
|
lt_cost,
|
||||||
|
|
Loading…
Add table
Reference in a new issue