mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 01:39:42 +01:00
* Prevent crash in PlayableProxyModel.
This commit is contained in:
parent
7ca3860ca8
commit
03bf80352c
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user