mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 20:36:01 +01:00
when opening a pianoroll for a new empty region, take the note mode from the track
This commit is contained in:
parent
38368f4dd9
commit
fd0e9e840e
1 changed files with 7 additions and 0 deletions
|
|
@ -1475,6 +1475,13 @@ Pianoroll::set_region (std::shared_ptr<ARDOUR::Region> region)
|
|||
bg->display_region (*view);
|
||||
|
||||
maybe_set_from_rsu ();
|
||||
|
||||
if (r->source()->empty()) {
|
||||
std::shared_ptr<MidiTrack> mt (std::dynamic_pointer_cast<ARDOUR::MidiTrack> (_track));
|
||||
if (mt) {
|
||||
note_mode_actions[mt->note_mode()]->set_active (true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue