QSqlTableModel::selectRow(): reduce scope of QSqlQuery
authorMark Brand <mabrand@mabrand.nl>
Mon, 17 Sep 2012 12:23:17 +0000 (14:23 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 19:27:51 +0000 (21:27 +0200)
commit3c2733e45f7ce0ce9a626d1347bb83ddc41013b2
tree6e763d1ae064596774ab37359b7a40de1b042019
parent7389c096379d63d956a023835646af1179ac6ea4
QSqlTableModel::selectRow(): reduce scope of QSqlQuery

It's good to clean up the query before emitting signals about the
updated row. It's possible that connected slots will call selectRow()
again for other rows.

Change-Id: I482fe2dd58218f53567ce8725ee591ce2eeda348
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/sql/models/qsqltablemodel.cpp