Skip to content

Commit

Permalink
* Properly implemented FlexibleView's jumpToCurrentTrack.
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Nov 14, 2012
1 parent 6ca7394 commit 7ac798c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/libtomahawk/playlist/FlexibleView.cpp
Expand Up @@ -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;
}


Expand Down

0 comments on commit 7ac798c

Please sign in to comment.