1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

* Pass the PlaylistInterface onto ContextMenu.

This commit is contained in:
Christian Muehlhaeuser
2012-11-16 08:30:13 +01:00
parent 286ec6c47c
commit 8960ec9690

View File

@@ -361,6 +361,8 @@ TrackView::resizeEvent( QResizeEvent* event )
int sortSection = m_header->sortIndicatorSection();
Qt::SortOrder sortOrder = m_header->sortIndicatorOrder();
tDebug() << Q_FUNC_INFO << width();
if ( m_header->checkState() && sortSection >= 0 )
{
// restoreState keeps overwriting our previous sort-order
@@ -563,6 +565,7 @@ void
TrackView::onCustomContextMenu( const QPoint& pos )
{
m_contextMenu->clear();
m_contextMenu->setPlaylistInterface( playlistInterface() );
QModelIndex idx = indexAt( pos );
idx = idx.sibling( idx.row(), 0 );