Project

General

Profile

Bug #4606 » 0001-Emit-QueryModel-dataChanged-after-setData-commits.patch

Bruce Toll, 12/04/2015 03:33 PM

View differences:

src/Wt/Dbo/QueryModel_impl.h
const boost::any& value, int role)
{
if (role == EditRole) {
Transaction transaction(query_.session());
{
Transaction transaction(query_.session());
Result& result = resultRow(index.row());
Result& result = resultRow(index.row());
int column = columns_[index.column()].fieldIdx_;
int column = columns_[index.column()].fieldIdx_;
const FieldInfo& field = fields()[column];
const FieldInfo& field = fields()[column];
boost::any dbValue = Wt::convertAnyToAny(value, *field.type());
boost::any dbValue = Wt::convertAnyToAny(value, *field.type());
query_result_traits<Result>::setValue(result, column, dbValue);
query_result_traits<Result>::setValue(result, column, dbValue);
invalidateRow(index.row());
transaction.commit();
}
transaction.commit();
invalidateRow(index.row());
return true;
} else
(2-2/2)