mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix crash after account reset after QR login.
This commit is contained in:
parent
606f5377d5
commit
f90e13f8b1
@ -478,10 +478,17 @@ void Widget::resetAccount() {
|
||||
_resetRequest = 0;
|
||||
|
||||
Ui::hideLayer();
|
||||
moveToStep(
|
||||
new SignupWidget(this, _account, getData()),
|
||||
StackAction::Replace,
|
||||
Animate::Forward);
|
||||
if (getData()->phone.isEmpty()) {
|
||||
moveToStep(
|
||||
new QrWidget(this, _account, getData()),
|
||||
StackAction::Replace,
|
||||
Animate::Back);
|
||||
} else {
|
||||
moveToStep(
|
||||
new SignupWidget(this, _account, getData()),
|
||||
StackAction::Replace,
|
||||
Animate::Forward);
|
||||
}
|
||||
}).fail([=](const RPCError &error) {
|
||||
_resetRequest = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user