1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

* Reimplemented ViewManager::pageForInterface.

This commit is contained in:
Christian Muehlhaeuser 2012-06-12 07:42:02 +02:00
parent 4acf96429e
commit aeeaaadcd2

View File

@ -936,14 +936,16 @@ ViewManager::pageForPlaylist(const playlist_ptr& pl) const
ViewPage*
ViewManager::pageForInterface( Tomahawk::playlistinterface_ptr interface ) const
{
/* for ( int i = 0; i < m_pageHistory.count(); i++ )
QList< Tomahawk::ViewPage* > pages = historyPages();
for ( int i = 0; i < pages.count(); i++ )
{
ViewPage* page = m_pageHistory.at( i );
ViewPage* page = pages.at( i );
if ( page->playlistInterface() == interface )
return page;
if ( page->playlistInterface() && page->playlistInterface()->hasChildInterface( interface ) )
return page;
}*/
}
return 0;
}