Delete duplicate condition in QComboBox::setPlaceholderText

There is a duplicate condition judgment in QComboBox::setPlaceholderText, just delete it.

Change-Id: I570415c5930372866f290216a89260353d3992b7
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
Dong Rui 2021-03-09 10:41:31 +08:00
parent bc1f61d010
commit bac4495619
1 changed files with 1 additions and 1 deletions

View File

@ -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();