mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
desensitize make-mono-regions as appropriate
git-svn-id: svn://localhost/ardour2/branches/3.0@10855 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
6a61ddb3af
commit
5423c45788
1 changed files with 8 additions and 0 deletions
|
|
@ -973,6 +973,7 @@ Editor::sensitize_the_right_region_actions ()
|
||||||
/* Look through the regions that are selected and make notes about what we have got */
|
/* Look through the regions that are selected and make notes about what we have got */
|
||||||
|
|
||||||
bool have_audio = false;
|
bool have_audio = false;
|
||||||
|
bool have_multichannel_audio = false;
|
||||||
bool have_midi = false;
|
bool have_midi = false;
|
||||||
bool have_locked = false;
|
bool have_locked = false;
|
||||||
bool have_unlocked = false;
|
bool have_unlocked = false;
|
||||||
|
|
@ -997,6 +998,9 @@ Editor::sensitize_the_right_region_actions ()
|
||||||
|
|
||||||
if (ar) {
|
if (ar) {
|
||||||
have_audio = true;
|
have_audio = true;
|
||||||
|
if (ar->n_channels() > 1) {
|
||||||
|
have_multichannel_audio = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boost::dynamic_pointer_cast<MidiRegion> (r)) {
|
if (boost::dynamic_pointer_cast<MidiRegion> (r)) {
|
||||||
|
|
@ -1077,6 +1081,10 @@ Editor::sensitize_the_right_region_actions ()
|
||||||
_region_actions->get_action("combine-regions")->set_sensitive (false);
|
_region_actions->get_action("combine-regions")->set_sensitive (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!have_multichannel_audio) {
|
||||||
|
_region_actions->get_action("split-multichannel-region")->set_sensitive (false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!have_midi) {
|
if (!have_midi) {
|
||||||
_region_actions->get_action("show-region-list-editor")->set_sensitive (false);
|
_region_actions->get_action("show-region-list-editor")->set_sensitive (false);
|
||||||
_region_actions->get_action("quantize-region")->set_sensitive (false);
|
_region_actions->get_action("quantize-region")->set_sensitive (false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue