Merge pull request #238 from Salanto/fix/237-deleteuser

Add missing inversion of query lookup result
This commit is contained in:
Rosemary Witchaven 2022-03-10 12:36:12 -06:00 committed by GitHub
commit e56a35aab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;