fix: fixing logic to emit signal dbOpenned
This commit is contained in:
parent
ef2b2a072e
commit
89080b7c6b
8
auth.cpp
8
auth.cpp
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue