qt5base-lts/tests/auto/widgets
Raschbauer, Reinhard 52c66e8515 QAbstractItemView: fix nullptr violation
If in a slot connected to QAbstractItemView::clicked
QAbstractItemView::setModel(nullptr) is called the method
QAbstractItemView::mouseReleaseEvent will cause a segmentation fault.
The problem is that the method QAbstractItemView::model used in
QAbstractItemView::mouseReleaseEvent will return a nullptr if a null
model was set. The solution is to used d->model since it is always a
valid model. (See line d->model =
(model ? model : QAbstractItemModelPrivate::staticEmptyModel());
in method QAbstractItemView::setModel)

Change-Id: I6f01bdeac64495ee4a76adcc7bf8da8a7719ef4d
Reviewed-by: David Faure <david.faure@kdab.com>
2017-08-04 08:36:29 +00:00
..
dialogs Ignore hanging tst_qinputdialog::getInt/getDouble() test on macOS 10.12 2017-08-02 15:49:53 +00:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview tst_qgraphicswidget expect fail on Win 10 2017-08-03 06:58:27 +00:00
itemviews QAbstractItemView: fix nullptr violation 2017-08-04 08:36:29 +00:00
kernel tst_qwidget::activation expect fail on Win 10 2017-08-03 06:58:35 +00:00
styles tst_QStyle::drawItemPixmap(): Check on the image color 2017-07-19 07:33:38 +00:00
util Convert features.filesystemmodel to QT_[REQUIRE_]CONFIG 2017-07-02 10:39:04 +00:00
widgets Ignore failures of submenuTearOffDontClose on macOS 10.12 2017-08-02 15:49:18 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00