Skip to content

Commit

Permalink
modified save() function to call create() instead of mdata()->create().
Browse files Browse the repository at this point in the history
  • Loading branch information
aoym committed Feb 6, 2014
1 parent 8ee5e59 commit 97b9322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabstractmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bool TAbstractModel::create()
*/
bool TAbstractModel::save()
{
return (mdata()->isNull()) ? mdata()->create() : mdata()->update();
return (mdata()->isNull()) ? create() : update();
}

/*!
Expand Down

0 comments on commit 97b9322

Please sign in to comment.