mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Check for nullptr before delete
This commit is contained in:
parent
61fae5bb0d
commit
d277d5c68b
1 changed files with 8 additions and 4 deletions
|
@ -189,13 +189,17 @@ void LoginPage::reset()
|
|||
matrixid_input_->clear();
|
||||
password_input_->clear();
|
||||
|
||||
if (settings_modal_ != nullptr) {
|
||||
settings_modal_->deleteLater();
|
||||
login_settings_->deleteLater();
|
||||
|
||||
login_settings_ = nullptr;
|
||||
settings_modal_ = nullptr;
|
||||
}
|
||||
|
||||
if (login_settings_ != nullptr) {
|
||||
login_settings_->deleteLater();
|
||||
login_settings_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void LoginPage::onBackButtonClicked()
|
||||
{
|
||||
emit backButtonClicked();
|
||||
|
|
Loading…
Reference in a new issue