Add generic "Create marker here" context menu entry
[pulseview.git] / pv / views / trace / header.cpp
index 10fc7eb9fc3600920f50280f7d521685abe97e88..fd2d85e227c4b70e82ecfcf415b7da9a5f0f4816 100644 (file)
@@ -125,7 +125,7 @@ void Header::contextMenuEvent(QContextMenuEvent *event)
        if (!r)
                return;
 
-       QMenu *menu = r->create_context_menu(this);
+       QMenu *menu = r->create_header_context_menu(this);
        if (!menu)
                menu = new QMenu(this);
 
@@ -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)