mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(profileform): Fixed segfault on logut
This commit is contained in:
parent
8f4b6869f1
commit
2e9295f420
|
@ -483,6 +483,8 @@ void ProfileForm::onRegisterButtonClicked()
|
||||||
Toxme::ExecCode code = Toxme::ExecCode::Ok;
|
Toxme::ExecCode code = Toxme::ExecCode::Ok;
|
||||||
QString response = Toxme::createAddress(code, server, id, name, privacy, bio);
|
QString response = Toxme::createAddress(code, server, id, name, privacy, bio);
|
||||||
|
|
||||||
|
if (Core::getInstance())
|
||||||
|
{
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case Toxme::Updated:
|
case Toxme::Updated:
|
||||||
QMessageBox::information(this, tr("Done!"), tr("Account %1@%2 updated successfully").arg(name, server), "Ok");
|
QMessageBox::information(this, tr("Done!"), tr("Account %1@%2 updated successfully").arg(name, server), "Ok");
|
||||||
|
@ -504,3 +506,4 @@ void ProfileForm::onRegisterButtonClicked()
|
||||||
bodyUI->toxmeRegisterButton->setText(tr("Register"));
|
bodyUI->toxmeRegisterButton->setText(tr("Register"));
|
||||||
bodyUI->toxmeUpdateButton->setText(tr("Update"));
|
bodyUI->toxmeUpdateButton->setText(tr("Update"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user