slightly better way of cancelling audition in xfade editor
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 9 Nov 2008 08:30:38 +0000 (08:30 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 9 Nov 2008 08:30:38 +0000 (08:30 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4117 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/crossfade_edit.cc

index b47247c68d88f56b976dbc56d066897e5c3f319d..99b11c584070fbc7fcf07b45fb9a73afe6ee8771 100644 (file)
@@ -1366,11 +1366,7 @@ CrossfadeEditor::on_key_release_event (GdkEventKey* ev)
                break;
 
        case GDK_space:
-               if (audition_left_dry_button.get_active() ||
-                   audition_left_button.get_active () ||
-                   audition_right_dry_button.get_active () ||
-                   audition_right_button.get_active () ||
-                   audition_both_button.get_active ()) {
+               if (session.is_auditioning()) {
                        cancel_audition ();
                } else {
                        audition_both_button.set_active (!audition_both_button.get_active());