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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user