mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-11 03:21:52 +02:00
Fixed position of context menu in ArtistView and TrackView
- using viewport()->mapToGlobal() as QTreeView is subclass of QAbstractScrollArea
This commit is contained in:
parent
9db33b7fb6
commit
f42aca9a02
src/libtomahawk/playlist
@ -384,7 +384,7 @@ ArtistView::onCustomContextMenu( const QPoint& pos )
|
||||
m_contextMenu->setArtists( artists );
|
||||
m_contextMenu->setAlbums( albums );
|
||||
|
||||
m_contextMenu->exec( mapToGlobal( pos ) );
|
||||
m_contextMenu->exec( viewport()->mapToGlobal( pos ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -567,7 +567,7 @@ TrackView::onCustomContextMenu( const QPoint& pos )
|
||||
}
|
||||
|
||||
m_contextMenu->setQueries( queries );
|
||||
m_contextMenu->exec( mapToGlobal( pos ) );
|
||||
m_contextMenu->exec( viewport()->mapToGlobal( pos ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user