mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 22:52:33 -06:00
- Cleanly fixed popup menu positions in lists (no more workarounds)
This commit is contained in:
@@ -236,7 +236,7 @@ void DownloadingTorrents::forceRecheck() {
|
||||
}
|
||||
}
|
||||
|
||||
void DownloadingTorrents::displayDLListMenu(const QPoint& pos) {
|
||||
void DownloadingTorrents::displayDLListMenu(const QPoint&) {
|
||||
QMenu myDLLlistMenu(this);
|
||||
// Enable/disable pause/start action given the DL state
|
||||
QModelIndexList selectedIndexes = downloadList->selectionModel()->selectedIndexes();
|
||||
@@ -285,8 +285,7 @@ void DownloadingTorrents::displayDLListMenu(const QPoint& pos) {
|
||||
myDLLlistMenu.addSeparator();
|
||||
myDLLlistMenu.addAction(actionBuy_it);
|
||||
// Call menu
|
||||
// XXX: why mapToGlobal() is not enough?
|
||||
myDLLlistMenu.exec(mapToGlobal(pos)+QPoint(10,35));
|
||||
myDLLlistMenu.exec(QCursor::pos());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user