mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
a113da0901
commit
0f3f2f5fe7
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ int ComboBox::getSelectedItemIndex() const throw()
|
|||
void ComboBox::setSelectedItemIndex (const int index,
|
||||
const bool dontSendChangeMessage) throw()
|
||||
{
|
||||
if (currentIndex != index)
|
||||
if (currentIndex != index || label->getText() != getItemText (currentIndex))
|
||||
{
|
||||
if (index >= 0 && index < getNumItems())
|
||||
currentIndex = index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue