From 51337991b019360a6d8e09e90f5726e1077287b8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 9 Nov 2008 08:30:38 +0000 Subject: slightly better way of cancelling audition in xfade editor git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4117 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/crossfade_edit.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk2_ardour/crossfade_edit.cc b/gtk2_ardour/crossfade_edit.cc index b47247c68d..99b11c5840 100644 --- a/gtk2_ardour/crossfade_edit.cc +++ b/gtk2_ardour/crossfade_edit.cc @@ -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()); -- cgit v1.2.3