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:
parent
fd6235995f
commit
75cb466909
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user