Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prepend tracks to inbox, and avoid crash.

  • Loading branch information...
commit fd60cf4a5b6085d660d3f03b1ce6b2666443b99f 1 parent 2dd5515
@teo teo authored
View
5 src/libtomahawk/database/DatabaseCommand_ShareTrack.cpp
@@ -98,9 +98,10 @@ DatabaseCommand_ShareTrack::postCommitHook()
return;
QMetaObject::invokeMethod( ViewManager::instance()->inboxModel(),
- "appendQuery",
+ "insertQuery",
Qt::QueuedConnection,
- Q_ARG( const Tomahawk::query_ptr&, m_query ) );
+ Q_ARG( const Tomahawk::query_ptr&, m_query ),
+ Q_ARG( int, 0 ) /*row*/ );
}
View
2  src/libtomahawk/playlist/PlayableProxyModel.cpp
@@ -543,7 +543,7 @@ PlayableProxyModel::data( const QModelIndex& index, int role ) const
return QVariant();
if ( !m_headerStyle.contains( m_style ) )
return QVariant();
- if ( index.column() < 0 )
+ if ( index.column() < 0 || index.column() >= m_headerStyle[ m_style ].count() )
return QVariant();
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
Please sign in to comment.
Something went wrong with that request. Please try again.