fix: fixing logic to emit signal dbOpenned

This commit is contained in:
Andrey Kutin 2026-10-15 19:07:29 +03:00
parent ef2b2a072e
commit 89080b7c6b
1 changed files with 4 additions and 4 deletions

View File

@ -40,9 +40,9 @@ auth::onAuth ()
db->setUserName(_nicknameEdit->text()); db->setUserName(_nicknameEdit->text());
db->setPassword(_passwordEdit->text()); db->setPassword(_passwordEdit->text());
bool ok = db->open(); bool ok = db->open();
if (!ok) { if (ok) {
// Error to open db
close();
}
emit dbOpenned(db); emit dbOpenned(db);
}
close();
} }