From b1e1388135e40fa11ca84eedcec0646875fa978f Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Tue, 10 Nov 2015 14:59:00 +0100 Subject: [PATCH] Fixed missing return in Service::loadById. --- core/service.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/service.h b/core/service.h index 6e22098..a317212 100644 --- a/core/service.h +++ b/core/service.h @@ -45,8 +45,9 @@ public: QSharedPointer loadById(int id) { odb::database *db = Context::instance().db(); odb::transaction tx(db->begin()); - db->template load(id); + QSharedPointer entity = db->template load(id); tx.commit(); + return entity; } };