diff layer/TimeValueLayer.cpp @ 255:e175ade2d6b0

* double-click in navigate mode relocates the centre frame (closing #1734854)
author Chris Cannam
date Wed, 13 Jun 2007 09:19:33 +0000
parents 28c8e8e3c537
children 9dd432665059
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Mon Jun 11 12:14:52 2007 +0000
+++ b/layer/TimeValueLayer.cpp	Wed Jun 13 09:19:33 2007 +0000
@@ -1046,13 +1046,13 @@
     m_editing = false;
 }
 
-void
+bool
 TimeValueLayer::editOpen(View *v, QMouseEvent *e)
 {
-    if (!m_model) return;
+    if (!m_model) return false;
 
     SparseTimeValueModel::PointList points = getLocalPoints(v, e->x());
-    if (points.empty()) return;
+    if (points.empty()) return false;
 
     SparseTimeValueModel::Point point = *points.begin();
 
@@ -1082,6 +1082,7 @@
     }
 
     delete dialog;
+    return true;
 }
 
 void