1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

die die flicker

This commit is contained in:
Leo Franchi 2011-10-16 21:44:49 -04:00
parent fd6235995f
commit 75cb466909

View File

@ -130,6 +130,17 @@ void SiblingCrumbButton::fillCombo()
list << sibling.data().toString();
}
if ( m_combo->count() && list.count() )
{
// Check if it's the same, Don't change if it is, as it'll cause flickering
QStringList old;
for ( int i = 0; i < m_combo->count(); i++ )
old << m_combo->itemText( i );
if ( list == old )
return;
}
m_combo->clear();
m_combo->addItems(list);
m_combo->setCurrentIndex( m_combo->findText(text()));