mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in subscribe button.
This commit is contained in:
parent
d4a2c4a151
commit
eac13b31f1
1 changed files with 1 additions and 1 deletions
|
@ -1783,7 +1783,7 @@ not_null<Ui::GradientButton*> CreateSubscribeButton(
|
||||||
controller = args.controller,
|
controller = args.controller,
|
||||||
computeRef = args.computeRef,
|
computeRef = args.computeRef,
|
||||||
computeBotUrl = args.computeBotUrl] {
|
computeBotUrl = args.computeBotUrl] {
|
||||||
const auto url = computeBotUrl ? QString() : computeBotUrl();
|
const auto url = computeBotUrl ? computeBotUrl() : QString();
|
||||||
if (!url.isEmpty()) {
|
if (!url.isEmpty()) {
|
||||||
const auto local = Core::TryConvertUrlToLocal(url);
|
const auto local = Core::TryConvertUrlToLocal(url);
|
||||||
if (local.isEmpty()) {
|
if (local.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue