From: Soeren Apel Date: Sat, 13 Oct 2018 19:35:09 +0000 (+0200) Subject: Use QMenu->popup() instead of QMenu->exec() everywhere X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8835b5e7c3c6e07e9b99e31a1fb31e600cdab76d;p=pulseview.git Use QMenu->popup() instead of QMenu->exec() everywhere --- 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)