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>
This commit is contained in:
Berthold Stoeger 2020-03-02 21:58:09 +01:00
parent c4c3e62ab0
commit c2d98b378b

View file

@ -1559,10 +1559,8 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
break; break;
} }
} }
if (some_hidden) { if (some_hidden)
action = m.addAction(tr("Unhide all events"), this, &ProfileWidget2::unhideEvents); m.addAction(tr("Unhide all events"), this, &ProfileWidget2::unhideEvents);
action->setData(event->globalPos());
}
m.exec(event->globalPos()); m.exec(event->globalPos());
} }