Reset the dialog when it is closed with partial (incomplete) changes to clocks. Fixes part of #254.
git-svn-id: svn://localhost/ardour2/branches/3.0@6246 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d2426538ad
commit
63484d5c9a
@ -153,7 +153,7 @@ AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion>
|
||||
show_all();
|
||||
|
||||
name_changed ();
|
||||
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|StartChanged|Region::SyncOffsetChanged));
|
||||
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged));
|
||||
gain_changed ();
|
||||
|
||||
_region->StateChanged.connect (mem_fun(*this, &AudioRegionEditor::region_changed));
|
||||
@ -408,3 +408,10 @@ AudioRegionEditor::sync_offset_relative_clock_changed ()
|
||||
|
||||
_session.commit_reversible_command ();
|
||||
}
|
||||
|
||||
bool
|
||||
AudioRegionEditor::on_delete_event (GdkEventAny* ev)
|
||||
{
|
||||
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged));
|
||||
return RegionEditor::on_delete_event (ev);
|
||||
}
|
||||
|
@ -116,6 +116,8 @@ class AudioRegionEditor : public RegionEditor
|
||||
gint bpressed (GdkEventButton* ev, Gtk::SpinButton* but, void (AudioRegionEditor::*pmf)());
|
||||
gint breleased (GdkEventButton* ev, Gtk::SpinButton* but, void (AudioRegionEditor::*pmf)());
|
||||
|
||||
bool on_delete_event (GdkEventAny *);
|
||||
|
||||
bool spin_arrow_grab;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user