1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

* Fixed jumping to current track when track is being played from the active page.

This commit is contained in:
Christian Muehlhaeuser 2012-11-14 03:37:03 +01:00
parent 7ac798c143
commit 3a8ea3be12
2 changed files with 12 additions and 1 deletions

View File

@ -473,6 +473,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
{
@ -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++ )
{

View File

@ -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 );