mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Pass the PlaylistInterface onto ContextMenu.
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user