projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7957f3
)
QSqlTableModel bugfix: consider uncached rows submitted
author
Mark Brand
<mabrand@mabrand.nl>
Tue, 13 Mar 2012 01:26:29 +0000
(
02:26
+0100)
committer
Qt 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
patch
|
blob
|
history
diff --git
a/src/sql/models/qsqltablemodel_p.h
b/src/sql/models/qsqltablemodel_p.h
index
323964a
..
20ca63a
100644
(file)
--- 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);