summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-02 21:58:09 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commitc2d98b378b06420600af479dc561bf5f55126ebb (patch)
treeec65fe2ae32182f374ddd8828936401f54417548 /profile-widget
parentc4c3e62ab0b3abed940ca16009b47b3dab61f068 (diff)
downloadsubsurface-c2d98b378b06420600af479dc561bf5f55126ebb.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp6
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());
}