mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Never re-create DropDownButton if download is in progress.
This commit is contained in:
@@ -135,7 +135,8 @@ PlaylistItemDelegate::createEditor( QWidget* parent, const QStyleOptionViewItem&
|
|||||||
PlayableItem* item = m_model->itemFromIndex( m_model->mapToSource( index ) );
|
PlayableItem* item = m_model->itemFromIndex( m_model->mapToSource( index ) );
|
||||||
Q_ASSERT( item );
|
Q_ASSERT( item );
|
||||||
|
|
||||||
if ( index.column() == PlayableModel::Download && item->result() && !item->result()->downloadFormats().isEmpty() )
|
if ( index.column() == PlayableModel::Download && item->result() &&
|
||||||
|
!item->result()->downloadFormats().isEmpty() && !item->result()->downloadJob() )
|
||||||
{
|
{
|
||||||
QStringList formats;
|
QStringList formats;
|
||||||
foreach ( const DownloadFormat& format, item->result()->downloadFormats() )
|
foreach ( const DownloadFormat& format, item->result()->downloadFormats() )
|
||||||
|
Reference in New Issue
Block a user