1
0
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:
Christian Muehlhaeuser 2012-12-03 15:57:21 +01:00
parent 7ca3860ca8
commit 03bf80352c

View File

@ -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 );