13
0

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:
Carl Hetherington 2009-12-01 13:25:07 +00:00
parent d2426538ad
commit 63484d5c9a
2 changed files with 10 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;
};