Skip to content

Commit

Permalink
fix insertObj functions
Browse files Browse the repository at this point in the history
  • Loading branch information
EndrII committed Nov 18, 2023
1 parent b8048a8 commit dbb59b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/database.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class HEARTSHARED_EXPORT DataBase: public QObject
template <class Object>
bool insertObj(const Object& obj, const QWeakPointer<unsigned int>& resultId = {}) {
if (auto&& database = db()) {
return database->insertObject(obj, resultId.isNull(), resultId);
return database->insertObject(obj, !resultId.isNull(), resultId);
}

return false;
Expand Down

0 comments on commit dbb59b0

Please sign in to comment.