mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 00:12:06 +02:00
Only add download button for script collections.
This commit is contained in:
parent
1d836ad2de
commit
c90c7a9b37
@ -114,8 +114,11 @@ CollectionViewPage::CollectionViewPage( const Tomahawk::collection_ptr& collecti
|
||||
NewClosure( m_header->ui->anchor3Label, SIGNAL( clicked() ), const_cast< CollectionViewPage* >( this ), SLOT( setCurrentMode( CollectionViewPageMode ) ), CollectionViewPage::Flat )->setAutoDelete( false );
|
||||
}
|
||||
|
||||
QAbstractButton* downloadButton = m_header->addButton( tr( "Download All" ) );
|
||||
connect( downloadButton, SIGNAL( clicked() ), SLOT( onDownloadAll() ) );
|
||||
if ( collection->backendType() == Collection::ScriptCollectionType )
|
||||
{
|
||||
QAbstractButton* downloadButton = m_header->addButton( tr( "Download All" ) );
|
||||
connect( downloadButton, SIGNAL( clicked() ), SLOT( onDownloadAll() ) );
|
||||
}
|
||||
|
||||
layout()->addWidget( m_header );
|
||||
layout()->addWidget( m_stack );
|
||||
|
Loading…
x
Reference in New Issue
Block a user