1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

search pages too

This commit is contained in:
Leo Franchi 2011-10-21 17:45:29 -04:00
parent 08610eee13
commit 1c66534cb8

View File

@ -20,6 +20,7 @@
#include "viewmanager.h"
#include "widgets/infowidgets/AlbumInfoWidget.h"
#include "widgets/infowidgets/ArtistInfoWidget.h"
#include "widgets/searchwidget.h"
using namespace Tomahawk;
@ -33,6 +34,8 @@ TemporaryPageItem::TemporaryPageItem ( SourcesModel* mdl, SourceTreeItem* parent
m_icon = QIcon( RESPATH "images/artist-icon.png" );
else if ( dynamic_cast< AlbumInfoWidget* >( page ) )
m_icon = QIcon( RESPATH "images/album-icon.png" );
else if ( dynamic_cast< SearchWidget* >( page ) )
m_icon = QIcon( RESPATH "images/search-icon.png" );
model()->linkSourceItemToPage( this, page );
}