1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

When the selected crumb doesn't have any children, emit the parent as having been selected.

This commit is contained in:
Casey Link
2011-09-04 22:34:17 -05:00
parent 8f326ee41b
commit dd83f121c8

View File

@@ -142,6 +142,9 @@ void SiblingCrumbButton::comboboxActivated(int i)
if( count > 0 ) {
qDebug() << "activated" << activated.child(0,0).data().toString();
breadcrumbBar()->currentChangedTriggered(activated.child(0,0));
} else {
// if it has no children, then emit itself
breadcrumbBar()->currentChangedTriggered(activated);
}
}