Merge pull request #238 from Salanto/fix/237-deleteuser
Add missing inversion of query lookup result
This commit is contained in:
commit
e56a35aab6
@ -203,7 +203,7 @@ bool DBManager::deleteUser(QString username)
|
|||||||
username_exists.addBindValue(username);
|
username_exists.addBindValue(username);
|
||||||
username_exists.exec();
|
username_exists.exec();
|
||||||
|
|
||||||
if (username_exists.first())
|
if (!username_exists.first())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
|
Loading…
Reference in New Issue
Block a user