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:
219b0d2
)
fix indentation
author
Mark Brand
<mabrand@mabrand.nl>
Fri, 28 Sep 2012 10:53:27 +0000
(12:53 +0200)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Fri, 28 Sep 2012 14:02:20 +0000
(16:02 +0200)
Change-Id: Iebec20c1be5a0610007a8e7ffd2646bda7f2785d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
src/sql/models/qsqltablemodel.cpp
patch
|
blob
|
history
diff --git
a/src/sql/models/qsqltablemodel.cpp
b/src/sql/models/qsqltablemodel.cpp
index
c8f230e
..
95cd0d8
100644
(file)
--- a/
src/sql/models/qsqltablemodel.cpp
+++ b/
src/sql/models/qsqltablemodel.cpp
@@
-1362,9
+1362,9
@@
bool QSqlTableModel::setRecord(int row, const QSqlRecord &values)
Map::const_iterator i = map.constBegin();
const Map::const_iterator e = map.constEnd();
for ( ; i != e; ++i) {
-
mrow.setValue(i.value(), values.value(i.key()));
-
// mrow.setValue() sets generated to TRUE, but source record should prevail.
-
if (!values.isGenerated(i.key()))
+ mrow.setValue(i.value(), values.value(i.key()));
+ // mrow.setValue() sets generated to TRUE, but source record should prevail.
+ if (!values.isGenerated(i.key()))
mrow.recRef().setGenerated(i.value(), false);
}