diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-25 00:33:39 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-24 21:11:30 -0700 |
commit | 2359bd3c2c9e173f97ca19537b79c6d2c65cf32f (patch) | |
tree | 02669ce5ccd31a6c99933791adac2421ec337ae1 /qt-ui/profile | |
parent | 2d41c4da0931cdf061d734f9419e35a471bd0afd (diff) | |
download | subsurface-2359bd3c2c9e173f97ca19537b79c6d2c65cf32f.tar.gz |
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>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |