summaryrefslogtreecommitdiffstats
path: root/src/sql/models/qsqlrelationaltablemodel.cpp
diff options
context:
space:
mode:
authorMark Brand <[email protected]>2012-02-10 03:08:36 +0100
committerQt by Nokia <[email protected]>2012-02-15 02:36:33 +0100
commit7bced2878047840bb9bca58289fa1aa4119f034a (patch)
treea256d52c405ce1abd7f77748dc33cf9d867d0834 /src/sql/models/qsqlrelationaltablemodel.cpp
parent434c46e8dc838cec0d2a2193701c52cc78ba0862 (diff)
QSqlTableModel::submitAll(): avoid resubmiting successful changes
Consider what happens the 1st change succeeds and the 2nd fails. No select will be done. When submitAll() is called again, the 1st will still seem to be pending. It will fail or have unexpected effects if the primary values were changed. The solution is to avoid resubmitting successful changes. We leave them in the cache so they stay visible. Submitted changes cannot be reverted of course. Change-Id: Ibf400555effa1c3801d02f8713b4b69856ede23a Reviewed-by: Yunqiao Yin <[email protected]>
Diffstat (limited to 'src/sql/models/qsqlrelationaltablemodel.cpp')
0 files changed, 0 insertions, 0 deletions