mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-30 19:00:12 +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();
|
||||
if ( !m_headerStyle.contains( m_style ) )
|
||||
return QVariant();
|
||||
if ( index.column() < 0 )
|
||||
return QVariant();
|
||||
|
||||
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
|
||||
QModelIndex sourceIdx = mapToSource( index );
|
||||
|
Reference in New Issue
Block a user