diff options
-rw-r--r-- | profile-widget/profilewidget2.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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()); } |