mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* Prevent crash in PlayableProxyModel.
This commit is contained in:
@@ -537,6 +537,8 @@ PlayableProxyModel::data( const QModelIndex& index, int role ) const
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
if ( !m_headerStyle.contains( m_style ) )
|
if ( !m_headerStyle.contains( m_style ) )
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
if ( index.column() < 0 )
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
|
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
|
||||||
QModelIndex sourceIdx = mapToSource( index );
|
QModelIndex sourceIdx = mapToSource( index );
|
||||||
|
Reference in New Issue
Block a user