traverso-commit
[Top][All Lists]
Advanced

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

[Traverso-commit] traverso/src/commands/plugins/TraversoCommands ...


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/commands/plugins/TraversoCommands ...
Date: Tue, 27 Nov 2007 20:35:25 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/11/27 20:35:25

Modified files:
        src/commands/plugins/TraversoCommands: TraversoCommands.cpp 

Log message:
        * do not set the SongView for Gain when the mouse cursor is above the 
TrackPanel, since it's not needed then.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/commands/plugins/TraversoCommands/TraversoCommands.cpp?cvsroot=traverso&r1=1.16&r2=1.17

Patches:
Index: TraversoCommands.cpp
===================================================================
RCS file: 
/sources/traverso/traverso/src/commands/plugins/TraversoCommands/TraversoCommands.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- TraversoCommands.cpp        27 Nov 2007 20:20:42 -0000      1.16
+++ TraversoCommands.cpp        27 Nov 2007 20:35:25 -0000      1.17
@@ -76,6 +76,12 @@
                                item = view->get_context();
                        }
                        
+                       // ugly hack to avoid assigning a songview when the 
+                       // mouse cursor is above the trackpanel....
+                       if (cpointer().scene_x() < 0) {
+                               songview = 0;
+                       }
+                       
                        if (!item) {
                                PERROR("TraversoCommands: Supplied QObject was 
not a ContextItem, "
                                        "GainCommand only works with 
ContextItem objects!!");




reply via email to

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