src/editmodes/magicwandmode.cc

changeset 824
6add2126e7ff
parent 823
1a2f593f0c02
child 827
82469b40567e
--- a/src/editmodes/magicwandmode.cc	Fri Jul 04 22:19:01 2014 +0300
+++ b/src/editmodes/magicwandmode.cc	Fri Jul 04 22:40:35 2014 +0300
@@ -197,8 +197,11 @@
 		g_win->buildObjList();
 }
 
-void MagicWandMode::mouseReleased (MouseEventData const& data)
+bool MagicWandMode::mouseReleased (MouseEventData const& data)
 {
+	if (Super::mouseReleased (data))
+		return true;
+
 	MagicType wandtype = MagicWandMode::Set;
 
 	if (data.keymods & Qt::ShiftModifier)
@@ -207,4 +210,5 @@
 		wandtype = MagicWandMode::Subtractive;
 	
 	doMagic (renderer()->pickOneObject (data.ev->x(), data.ev->y()), wandtype);
+	return true;
 }

mercurial