QSqlTableModel bugfix: consider uncached rows submitted
authorMark Brand <mabrand@mabrand.nl>
Tue, 13 Mar 2012 01:26:29 +0000 (02:26 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Mar 2012 23:50:47 +0000 (00:50 +0100)
Change-Id: I7ec0529b88fd8e3ae0cf8dadfcb5899579e52745
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
src/sql/models/qsqltablemodel_p.h

index 323964a..20ca63a 100644 (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);