traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/traverso Interface.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/traverso Interface.cpp
Date: Sat, 08 Dec 2007 15:26:35 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/12/08 15:26:35

Modified files:
        src/traverso   : Interface.cpp 

Log message:
        * do not send mouse move events from QMenu to ViewPort when InputEngine 
is still in holding mode (Thanks Ben for catching this one :) )

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/Interface.cpp?cvsroot=traverso&r1=1.118&r2=1.119

Patches:
Index: Interface.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/Interface.cpp,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -b -r1.118 -r1.119
--- Interface.cpp       7 Dec 2007 15:43:02 -0000       1.118
+++ Interface.cpp       8 Dec 2007 15:26:35 -0000       1.119
@@ -378,9 +378,11 @@
                        // Also send mouse move events to the current viewport
                        // so in case we close the Menu, and 
_do_not_move_the_mouse
                        // and perform an action, it could be delegated to the 
wrong ViewItem!
+                       // Obviously we don't want to send this event when the 
InputEngine is still
+                       // in holding mode, to avoid jog() being called for the 
active HoldCommand!
                        QMouseEvent* mouseEvent = 
static_cast<QMouseEvent*>(event);
                        ViewPort* vp = cpointer().get_viewport();
-                       if (vp) {
+                       if (vp && !ie().is_holding()) {
                                vp->mouseMoveEvent(mouseEvent);
                        }
                } else {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]