From 2359bd3c2c9e173f97ca19537b79c6d2c65cf32f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 25 May 2014 00:33:39 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 413386ef2..2de64e71f 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -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) -- cgit v1.2.3-70-g09d2