mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +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();
|
int sortSection = m_header->sortIndicatorSection();
|
||||||
Qt::SortOrder sortOrder = m_header->sortIndicatorOrder();
|
Qt::SortOrder sortOrder = m_header->sortIndicatorOrder();
|
||||||
|
|
||||||
|
tDebug() << Q_FUNC_INFO << width();
|
||||||
|
|
||||||
if ( m_header->checkState() && sortSection >= 0 )
|
if ( m_header->checkState() && sortSection >= 0 )
|
||||||
{
|
{
|
||||||
// restoreState keeps overwriting our previous sort-order
|
// restoreState keeps overwriting our previous sort-order
|
||||||
@@ -563,6 +565,7 @@ void
|
|||||||
TrackView::onCustomContextMenu( const QPoint& pos )
|
TrackView::onCustomContextMenu( const QPoint& pos )
|
||||||
{
|
{
|
||||||
m_contextMenu->clear();
|
m_contextMenu->clear();
|
||||||
|
m_contextMenu->setPlaylistInterface( playlistInterface() );
|
||||||
|
|
||||||
QModelIndex idx = indexAt( pos );
|
QModelIndex idx = indexAt( pos );
|
||||||
idx = idx.sibling( idx.row(), 0 );
|
idx = idx.sibling( idx.row(), 0 );
|
||||||
|
Reference in New Issue
Block a user