QSqlTableModel bugfix: consider uncached rows submitted

Change-Id: I7ec0529b88fd8e3ae0cf8dadfcb5899579e52745
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
This commit is contained in:
Mark Brand 2012-03-13 02:26:29 +01:00 committed by Qt by Nokia
parent f7957f3993
commit 273508205c

View File

@ -106,6 +106,8 @@ public:
inline Op op() const { return m_op; }
inline void setOp(Op o)
{
if (o == None)
m_submitted = true;
if (o == m_op)
return;
m_submitted = (o != Insert && o != Delete);