diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index 0194b7bf52..4f626f7428 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -1704,7 +1704,7 @@ void QComboBox::setPlaceholderText(const QString &placeholderText) d->placeholderText = placeholderText; if (currentIndex() == -1) { - if (d->placeholderText.isEmpty() && currentIndex() == -1) + if (d->placeholderText.isEmpty()) setCurrentIndex(0); else update();