From 218015c3e3523d563726c4c8e120ba4d460cf762 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sat, 7 May 2011 01:41:33 -0400 Subject: [PATCH] Show the lookup state menu on frames. --- gui/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index b5d20b1..9d8748d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -963,12 +963,14 @@ void MainWindow::customContextMenuRequested(QPoint pos) ApiTraceEvent *event = index.data(ApiTraceModel::EventRole).value(); - if (!event || event->type() != ApiTraceEvent::Call) + if (!event) return; menu.addAction(QIcon(":/resources/media-record.png"), tr("Lookup state"), this, SLOT(lookupState())); - menu.addAction(tr("Edit"), this, SLOT(editCall())); + if (event->type() == ApiTraceEvent::Call) { + menu.addAction(tr("Edit"), this, SLOT(editCall())); + } menu.exec(QCursor::pos()); } -- 2.43.0