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:
Tomaz Canabrava 2014-05-25 00:33:39 -03:00 committed by Dirk Hohndel
parent 2d41c4da09
commit 2359bd3c2c

View file

@ -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)