mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Seems to not crash when chart is not fully loaded
This commit is contained in:
@@ -156,7 +156,7 @@ void SiblingCrumbButton::comboboxActivated(int i)
|
|||||||
{
|
{
|
||||||
QModelIndex activated = m_index.sibling(i,0);
|
QModelIndex activated = m_index.sibling(i,0);
|
||||||
int count = breadcrumbBar()->model()->rowCount(activated);
|
int count = breadcrumbBar()->model()->rowCount(activated);
|
||||||
if( count > 0 ) {
|
if( count >= 0 ) {
|
||||||
// qDebug() << "activated crumb with children:" << activated.child(0,0).data().toString();
|
// qDebug() << "activated crumb with children:" << activated.child(0,0).data().toString();
|
||||||
breadcrumbBar()->currentChangedTriggered(activated.child(0,0));
|
breadcrumbBar()->currentChangedTriggered(activated.child(0,0));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user