mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
fix definition of Trigger::playable()
The recent change to only use the data object breaks GUI handling of a PropertyChange signal after _region is set following a drag and drop
This commit is contained in:
parent
62a4df52c7
commit
c2deacdd54
1 changed files with 2 additions and 2 deletions
|
|
@ -510,7 +510,7 @@ class LIBARDOUR_API AudioTrigger : public Trigger {
|
|||
return audio_run<true> (bufs, start_sample, end_sample, start, end, nframes, dest_offset, bpm, quantize_offset);
|
||||
}
|
||||
|
||||
bool playable() const { return data.length; }
|
||||
bool playable() const { return data.length || _region; }
|
||||
|
||||
StretchMode stretch_mode() const { return _stretch_mode; }
|
||||
void set_stretch_mode (StretchMode);
|
||||
|
|
@ -603,7 +603,7 @@ class LIBARDOUR_API MIDITrigger : public Trigger {
|
|||
MIDITrigger (uint32_t index, TriggerBox&);
|
||||
~MIDITrigger ();
|
||||
|
||||
bool playable() const { return rt_midibuffer.load(); }
|
||||
bool playable() const { return rt_midibuffer.load() || _region; }
|
||||
|
||||
void captured (SlotArmInfo&, BufferSet&);
|
||||
void arm();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue