From ca0d5123d26794728a3849291f014e9cf5e0b3df Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Thu, 25 Mar 2021 00:35:20 -0500 Subject: [PATCH] fix dumb mistake --- src/db_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db_manager.cpp b/src/db_manager.cpp index bd2ba32..217ca25 100644 --- a/src/db_manager.cpp +++ b/src/db_manager.cpp @@ -194,7 +194,7 @@ bool DBManager::invalidateBan(int id) ban_exists.addBindValue(id); ban_exists.exec(); - if (ban_exists.first()) + if (!ban_exists.first()) return false; QSqlQuery query;