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:
parent
7ac798c143
commit
3a8ea3be12
@ -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++ )
|
||||
{
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user