From c2d98b378b06420600af479dc561bf5f55126ebb Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 2 Mar 2020 21:58:09 +0100 Subject: cleanup: don't set unnecessary action userdata for unhideEvents The unhideEvents context menu action was fed with the click-position. However, that was not used. Therefore, remove it. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index ebc760cac..53baa917c 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1559,10 +1559,8 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) break; } } - if (some_hidden) { - action = m.addAction(tr("Unhide all events"), this, &ProfileWidget2::unhideEvents); - action->setData(event->globalPos()); - } + if (some_hidden) + m.addAction(tr("Unhide all events"), this, &ProfileWidget2::unhideEvents); m.exec(event->globalPos()); } -- cgit v1.2.3-70-g09d2