mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Reenables the air edition and deletion of handlers on the planner/add
Only a tiny bit of poke around the contextMenuEvent - the events of the planner are dealt by the QGraphicsItem, and this makes the logic pretty easy to follow. :) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2d41c4da09
commit
2359bd3c2c
1 changed files with 4 additions and 0 deletions
|
@ -783,6 +783,10 @@ extern int evn_used;
|
|||
|
||||
void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
|
||||
{
|
||||
if (currentState == ADD || currentState == PLAN) {
|
||||
QGraphicsView::contextMenuEvent(event);
|
||||
return;
|
||||
}
|
||||
QMenu m;
|
||||
bool isDCName = false;
|
||||
if (selected_dive == -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue