mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
c4c3e62ab0
commit
c2d98b378b
1 changed files with 2 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue