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
parent
bc1f61d010
commit
bac4495619
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue