mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Fixed jumping to current track when track is being played from the active page.
This commit is contained in:
@@ -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*>
|
QList<ViewPage*>
|
||||||
ViewManager::historyPages() const
|
ViewManager::historyPages() const
|
||||||
{
|
{
|
||||||
@@ -788,7 +798,7 @@ ViewManager::pageForPlaylist(const playlist_ptr& pl) const
|
|||||||
ViewPage*
|
ViewPage*
|
||||||
ViewManager::pageForInterface( Tomahawk::playlistinterface_ptr interface ) const
|
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++ )
|
for ( int i = 0; i < pages.count(); i++ )
|
||||||
{
|
{
|
||||||
|
@@ -147,6 +147,7 @@ public slots:
|
|||||||
void historyBack();
|
void historyBack();
|
||||||
void historyForward();
|
void historyForward();
|
||||||
|
|
||||||
|
QList< Tomahawk::ViewPage* > allPages() const;
|
||||||
QList< Tomahawk::ViewPage* > historyPages() const;
|
QList< Tomahawk::ViewPage* > historyPages() const;
|
||||||
void destroyPage( Tomahawk::ViewPage* page );
|
void destroyPage( Tomahawk::ViewPage* page );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user