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:
parent
4acf96429e
commit
aeeaaadcd2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user