1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-07-31 15:29:45 +00:00
parent a113da0901
commit 0f3f2f5fe7

View file

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