Commit 7f372036 authored by Agata Cacko's avatar Agata Cacko

Fix KisTagModel::removeTag() query

Before this commit, preparing query would fail because
of the wrong order of the SET and WHERE statements.
This commit fixes the situation, thanks to which
deleting tags should now work.
parent 02757c9f
......@@ -223,8 +223,8 @@ bool KisTagModel::removeTag(const KisTagSP tag)
QSqlQuery q;
if (!q.prepare("UPDATE tags\n"
"WHERE id = :id\n"
"SET active = 0")) {
"SET active = 0\n"
"WHERE id = :id")) {
qWarning() << "Could not prepare remove tag query" << q.lastError();
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment