summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-03-13 02:26:29 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-15 00:50:47 +0100
commit273508205c4dbc6a3e1c6f1ea5e60a30c468219b (patch)
tree7e4e67e79ed5426fb10237d2cdc19f5033c3b858 /src
parentf7957f39937c42aadecc6ad2b73d006559514e00 (diff)
QSqlTableModel bugfix: consider uncached rows submitted
Change-Id: I7ec0529b88fd8e3ae0cf8dadfcb5899579e52745 Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/sql/models/qsqltablemodel_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/models/qsqltablemodel_p.h b/src/sql/models/qsqltablemodel_p.h
index 323964afe8..20ca63af61 100644
--- a/src/sql/models/qsqltablemodel_p.h
+++ b/src/sql/models/qsqltablemodel_p.h
@@ -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);