This commit is contained in:
Hamed Masafi 2016-05-12 11:11:57 +04:30
parent 068cc1980c
commit 84fa41942a
1 changed files with 27 additions and 27 deletions

View File

@ -46,7 +46,7 @@ auto q = FROM(db.posts())
Post *post = q->first();
if(post = 0) {
if(post) {
post->setTitle("new name");
db.saveChanges();
} else {