diff options
author | Honglei Zhang <honglei.zhang@nokia.com> | 2012-03-07 18:54:58 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 19:51:43 +0200 |
commit | 06001ce0085c5fd47bbcc3c7ab151f7c0ac2f0ed (patch) | |
tree | b1f2949df1825048a247ed3f91a994a188eb3dc2 /src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp | |
parent | fa9cf676159e8d9876c8532dc4e90f4bf5d9a47b (diff) |
Fix crash when an invalid filter is set
QSqlTableModel::headerData() generates a crash if an invalid filter
is set. QSqlQueryModel::indexInQuery() should check the index value
before applied to d->colOffsets[].
QSqlQueryModel::initRecordAndPrimaryIndex() is updated to sync the
size of rec and colOffsets.
Task-number: QTBUG-23879
Change-Id: Ic9f88bb288592aa6fb3c1415cc818632dadaab56
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreeneventhandler.cpp')
0 files changed, 0 insertions, 0 deletions