Commit 7b6a8c84 authored by David Faure's avatar David Faure
Browse files

Fix 37 pixels offset for the context menu when dropping.

Bug found by tsdgeos.
Regression coming from the fix for bug 430787.
parent a7bd5749
Pipeline #51103 passed with stage
in 44 minutes and 23 seconds
......@@ -230,7 +230,7 @@ bool DragDropManager::processDropEvent(QDropEvent *event, bool &menuCanceled, bo
popup.addSeparator();
QAction *cancelAction = popup.addAction(QIcon::fromTheme(QStringLiteral("process-stop")), i18n("C&ancel") + QLatin1Char('\t') + QKeySequence(Qt::Key_Escape).toString());
QAction *activatedAction = popup.exec(m_view->mapToGlobal(event->pos()));
QAction *activatedAction = popup.exec(m_view->viewport()->mapToGlobal(event->pos()));
if (!activatedAction || (activatedAction == cancelAction)) {
menuCanceled = true;
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment