Permalink
Browse files

* Fixed jumping to current track when track is being played from the …

…active page.
  • Loading branch information...
1 parent 7ac798c commit 3a8ea3be126981b9b48ff3f7a527e20ae308df92 @muesli muesli committed Nov 14, 2012
Showing with 12 additions and 1 deletion.
  1. +11 −1 src/libtomahawk/ViewManager.cpp
  2. +1 −0 src/libtomahawk/ViewManager.h
@@ -474,6 +474,16 @@ ViewManager::historyForward()
QList<ViewPage*>
+ViewManager::allPages() const
+{
+ QList< ViewPage* > pages = m_pageHistoryBack + m_pageHistoryFwd;
+ pages << m_currentPage;
+
+ return pages;
+}
+
+
+QList<ViewPage*>
ViewManager::historyPages() const
{
return m_pageHistoryBack + m_pageHistoryFwd;
@@ -788,7 +798,7 @@ ViewManager::pageForPlaylist(const playlist_ptr& pl) const
ViewPage*
ViewManager::pageForInterface( Tomahawk::playlistinterface_ptr interface ) const
{
- QList< Tomahawk::ViewPage* > pages = historyPages();
+ QList< Tomahawk::ViewPage* > pages = allPages();
for ( int i = 0; i < pages.count(); i++ )
{
@@ -147,6 +147,7 @@ public slots:
void historyBack();
void historyForward();
+ QList< Tomahawk::ViewPage* > allPages() const;
QList< Tomahawk::ViewPage* > historyPages() const;
void destroyPage( Tomahawk::ViewPage* page );

0 comments on commit 3a8ea3b

Please sign in to comment.