qt6-bb10/tests/auto/widgets/widgets
Marc Mutz 631b143b3f QComboBox: fix crash on setEditable(false) called from editTextChanged()
QLineEdit::setText() emits QLineEdit::textChanged(), which is
connected to QComboBox::editTextChanged(). When a user slot
connected to editTextChanged() sets QComboBox::editable to
false, the line edit will be deleted in setEditable() and
when control returns to QComboBoxPrivate::setCurrentIndex(),
the formerly non-null 'lineEdit' has changed to nullptr,
leading to a nullptr dereference when attempting to set the
completionPrefix on lineEdit->completer().

Fix by re-checking 'lineEdit' after returning from the
QLineEdit::setText() call.

Add a test.

Task-number: QTBUG-54191
Change-Id: I94154796cfde73fb490f8471c48b9d6f62825a92
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-07-06 10:34:43 +00:00
..
qabstractbutton tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qabstractscrollarea
qabstractslider Fix scroll regression near scroll-view ends 2016-04-29 10:25:45 +00:00
qabstractspinbox
qbuttongroup tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qcalendarwidget
qcheckbox tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qcombobox QComboBox: fix crash on setEditable(false) called from editTextChanged() 2016-07-06 10:34:43 +00:00
qcommandlinkbutton tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qdatetimeedit QAbstractSpinBox::inputMethodQuery(): Consider input method hints set on the spin box. 2015-09-22 14:26:26 +00:00
qdial
qdialogbuttonbox tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qdockwidget Remove restoreDockWidget from BLACKLIST 2016-03-15 09:41:09 +00:00
qdoublespinbox
qfocusframe
qfontcombobox tests: fix tst_QFontComboBox on OS X 2016-04-08 15:02:58 +00:00
qframe Solid and gradients in high color accuracy 2015-04-10 09:15:59 +00:00
qgroupbox
qkeysequenceedit
qlabel Clean up tst_qlabel 2015-11-27 17:47:11 +00:00
qlcdnumber
qlineedit Revert "QWindow::destroy(): only reset QGuiApp::focus_window and friends as a last resort" 2016-02-02 02:12:26 +00:00
qmainwindow Add QMainWindow::resizeDocks 2015-08-16 08:23:32 +00:00
qmdiarea tst_QMdiArea::subWindowActivated2(): Allow for several activated events. 2016-05-09 08:40:00 +00:00
qmdisubwindow Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
qmenu QMenu auto-test: Add test for two-level tearable menus 2016-05-19 18:17:40 +00:00
qmenubar QMenuBar: nested parenting fix 2016-05-18 17:40:11 +00:00
qopenglwidget Blacklist tst_QOpenGLWidget::stackWidgetOpaqueChildIsVisible test. 2016-06-01 11:17:31 +00:00
qplaintextedit tst_QPlainTextEdit/tst_QTextEdit: Do not output unprintable characters. 2016-05-31 11:46:36 +00:00
qprogressbar tests: remove use of obsolete QStyleOption*V<N> 2015-11-03 16:11:51 +00:00
qpushbutton tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qradiobutton
qscrollarea tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qscrollbar Replace MAC OS X with OS X 2015-06-30 07:33:31 +00:00
qsizegrip Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qslider
qspinbox QAbstractSpinBox::inputMethodQuery(): Consider input method hints set on the spin box. 2015-09-22 14:26:26 +00:00
qsplashscreen
qsplitter
qstackedwidget
qstatusbar
qtabbar tst_qtabbar sizeHints fix 2016-03-16 07:39:22 +00:00
qtabwidget tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qtextbrowser Initialize input method for read-only QTextBrowser 2016-03-23 09:46:24 +00:00
qtextedit tst_QPlainTextEdit/tst_QTextEdit: Do not output unprintable characters. 2016-05-31 11:46:36 +00:00
qtoolbar tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qtoolbox
qtoolbutton tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
widgets.pro