src/editmodes/selectmode.cc

changeset 824
6add2126e7ff
parent 823
1a2f593f0c02
child 825
f7649c9bfd9a
--- a/src/editmodes/selectmode.cc	Fri Jul 04 22:19:01 2014 +0300
+++ b/src/editmodes/selectmode.cc	Fri Jul 04 22:40:35 2014 +0300
@@ -10,8 +10,11 @@
 	return EditModeType::Select;
 }
 
-void SelectMode::mouseReleased (MouseEventData const& data)
+bool SelectMode::mouseReleased (MouseEventData const& data)
 {
+	if (Super::mouseReleased (data))
+		return true;
+
 	if (not data.mouseMoved)
 		_rangepick = false;
 
@@ -20,10 +23,15 @@
 
 	if (not data.mouseMoved || _rangepick)
 		renderer()->pick (data.ev->x(), data.ev->y());
+
+	_rangepick = false;
 }
 
-void SelectMode::mousePressed (MouseEventData const& data)
+bool SelectMode::mousePressed (MouseEventData const& data)
 {
+	if (Super::mousePressed (data))
+		return true;
+
 	if (data.ev->modifiers() & Qt::ControlModifier)
 	{
 		_rangepick = true;
@@ -31,5 +39,8 @@
 		_rangeStart.setY (data.ev->y());
 		_addpick = (data.keymods & Qt::AltModifier);
 		data.ev->accept();
+		return true;
 	}
+
+	return false;
 }
\ No newline at end of file

mercurial