Emit dataChanged() before a possible new select instead of after.
The select reinserts all the rows, emitting signals for that, so
there isn't any point to dataChanged() afterwards.
Change-Id: I698a0d385f97104891343d94cc27e4ecf3a7233c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
}
row.setValue(index.column(), value);
+ emit dataChanged(index, index);
bool isOk = true;
if (d->strategy == OnFieldChange && row.op() != QSqlTableModelPrivate::Insert) {
select();
}
- emit dataChanged(index, index);
-
return isOk;
}