1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-03 20:57:52 +02: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* ViewPage*
ViewManager::pageForInterface( Tomahawk::playlistinterface_ptr interface ) const 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 ) if ( page->playlistInterface() == interface )
return page; return page;
if ( page->playlistInterface() && page->playlistInterface()->hasChildInterface( interface ) ) if ( page->playlistInterface() && page->playlistInterface()->hasChildInterface( interface ) )
return page; return page;
}*/ }
return 0; return 0;
} }