diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-19 14:45:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-03-19 14:45:34 +0000 |
commit | 36d88c8e494c1997c05d122fa03c00d0e8b6e401 (patch) | |
tree | 65d3b141f6479ab5130a12cbbbbf44979802fd75 /gtk2_ardour/audio_streamview.cc | |
parent | 84bbdb9a1dda53406c27336fbd7d68988d0b971b (diff) |
make rec-regions insensitive to events; fix up diskrate dialog text
git-svn-id: svn://localhost/ardour2/trunk@1626 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_streamview.cc')
-rw-r--r-- | gtk2_ardour/audio_streamview.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_streamview.cc b/gtk2_ardour/audio_streamview.cc index aa54af86fb..14036bc569 100644 --- a/gtk2_ardour/audio_streamview.cc +++ b/gtk2_ardour/audio_streamview.cc @@ -179,6 +179,15 @@ AudioStreamView::add_region_view_internal (boost::shared_ptr<Region> r, bool wai region_view->set_amplitude_above_axis(_amplitude_above_axis); region_views.push_front (region_view); + + /* if its the special single-sample length that we use for rec-regions, make it + insensitive to events + */ + + if (region->length() == 1) { + region_view->set_sensitive (false); + } + /* if this was the first one, then lets query the waveform scale and shape. otherwise, we set it to the current value */ |