From 8835b5e7c3c6e07e9b99e31a1fb31e600cdab76d Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 13 Oct 2018 21:35:09 +0200 Subject: [PATCH] Use QMenu->popup() instead of QMenu->exec() everywhere --- pv/views/trace/header.cpp | 2 +- pv/views/trace/marginwidget.cpp | 2 +- pv/views/trace/view.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pv/views/trace/header.cpp b/pv/views/trace/header.cpp index c5510fcb..fd2d85e2 100644 --- a/pv/views/trace/header.cpp +++ b/pv/views/trace/header.cpp @@ -142,7 +142,7 @@ void Header::contextMenuEvent(QContextMenuEvent *event) menu->addAction(group); } - menu->exec(event->globalPos()); + menu->popup(event->globalPos()); } void Header::keyPressEvent(QKeyEvent *event) diff --git a/pv/views/trace/marginwidget.cpp b/pv/views/trace/marginwidget.cpp index 7b750357..f0d50c97 100644 --- a/pv/views/trace/marginwidget.cpp +++ b/pv/views/trace/marginwidget.cpp @@ -59,7 +59,7 @@ void MarginWidget::contextMenuEvent(QContextMenuEvent *event) QMenu *menu = r->create_header_context_menu(this); if (menu) - menu->exec(event->globalPos()); + menu->popup(event->globalPos()); } void MarginWidget::keyPressEvent(QKeyEvent *event) diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index 625722d4..375f5754 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -1382,7 +1382,7 @@ void View::contextMenuEvent(QContextMenuEvent *event) QMenu *menu = r->create_view_context_menu(this, pos); if (menu) - menu->exec(event->globalPos()); + menu->popup(event->globalPos()); } void View::resizeEvent(QResizeEvent* event) -- 2.30.2