diff --git a/core/src/db_manager.cpp b/core/src/db_manager.cpp index 0fd3a4d..193460c 100644 --- a/core/src/db_manager.cpp +++ b/core/src/db_manager.cpp @@ -203,7 +203,7 @@ bool DBManager::deleteUser(QString username) username_exists.addBindValue(username); username_exists.exec(); - if (username_exists.first()) + if (!username_exists.first()) return false; QSqlQuery query;