1
0
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:
Christian Muehlhaeuser
2012-11-14 03:36:04 +01:00
parent 6ca7394c78
commit 7ac798c143

View File

@@ -268,10 +268,16 @@ FlexibleView::pixmap() const
bool
FlexibleView::jumpToCurrentTrack()
{
m_trackView->jumpToCurrentTrack();
m_detailedView->jumpToCurrentTrack();
m_gridView->jumpToCurrentTrack();
return true;
tDebug() << Q_FUNC_INFO;
bool b = false;
// 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;
}