mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
* No more mode init.
This commit is contained in:
parent
b76b96ef3e
commit
2d356c5bae
@ -239,12 +239,12 @@ ViewManager::show( const Tomahawk::artist_ptr& artist )
|
||||
|
||||
|
||||
Tomahawk::ViewPage*
|
||||
ViewManager::show( const Tomahawk::album_ptr& album, Tomahawk::ModelMode initialMode )
|
||||
ViewManager::show( const Tomahawk::album_ptr& album )
|
||||
{
|
||||
AlbumInfoWidget* swidget;
|
||||
if ( !m_albumViews.contains( album ) || m_albumViews.value( album ).isNull() )
|
||||
{
|
||||
swidget = new AlbumInfoWidget( album, initialMode );
|
||||
swidget = new AlbumInfoWidget( album );
|
||||
m_albumViews.insert( album, swidget );
|
||||
}
|
||||
else
|
||||
|
@ -151,7 +151,7 @@ public slots:
|
||||
Tomahawk::ViewPage* show( const Tomahawk::playlist_ptr& playlist );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::dynplaylist_ptr& playlist );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::artist_ptr& artist );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::album_ptr& album, Tomahawk::ModelMode withInitialMode = Tomahawk::InfoSystemMode );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::album_ptr& album );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::query_ptr& query );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::collection_ptr& collection );
|
||||
Tomahawk::ViewPage* show( const Tomahawk::source_ptr& source );
|
||||
|
@ -94,7 +94,7 @@ ArtistView::ArtistView( QWidget* parent )
|
||||
|
||||
ArtistView::~ArtistView()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
|
||||
@ -224,7 +224,7 @@ ArtistView::onItemActivated( const QModelIndex& index )
|
||||
if ( !item->artist().isNull() )
|
||||
ViewManager::instance()->show( item->artist() );
|
||||
else if ( !item->album().isNull() )
|
||||
ViewManager::instance()->show( item->album(), m_model->mode() );
|
||||
ViewManager::instance()->show( item->album() );
|
||||
else if ( !item->result().isNull() && item->result()->isOnline() )
|
||||
{
|
||||
m_model->setCurrentItem( item->index );
|
||||
|
Loading…
x
Reference in New Issue
Block a user