mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-20 12:52:30 +02:00
* Properly implemented FlexibleView's jumpToCurrentTrack.
This commit is contained in:
@@ -268,10 +268,16 @@ FlexibleView::pixmap() const
|
|||||||
bool
|
bool
|
||||||
FlexibleView::jumpToCurrentTrack()
|
FlexibleView::jumpToCurrentTrack()
|
||||||
{
|
{
|
||||||
m_trackView->jumpToCurrentTrack();
|
tDebug() << Q_FUNC_INFO;
|
||||||
m_detailedView->jumpToCurrentTrack();
|
|
||||||
m_gridView->jumpToCurrentTrack();
|
bool b = false;
|
||||||
return true;
|
|
||||||
|
// note: the order of comparison is important here, if we'd write "b || foo" then foo will not be executed if b is already true!
|
||||||
|
b = m_trackView->jumpToCurrentTrack() || b;
|
||||||
|
b = m_detailedView->jumpToCurrentTrack() || b;
|
||||||
|
b = m_gridView->jumpToCurrentTrack() || b;
|
||||||
|
|
||||||
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user