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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user