mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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
2 changed files with 10 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ AudioRegionEditor::AudioRegionEditor (Session& s, boost::shared_ptr<AudioRegion>
|
||||||
show_all();
|
show_all();
|
||||||
|
|
||||||
name_changed ();
|
name_changed ();
|
||||||
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|StartChanged|Region::SyncOffsetChanged));
|
bounds_changed (Change (StartChanged|LengthChanged|PositionChanged|Region::SyncOffsetChanged));
|
||||||
gain_changed ();
|
gain_changed ();
|
||||||
|
|
||||||
_region->StateChanged.connect (mem_fun(*this, &AudioRegionEditor::region_changed));
|
_region->StateChanged.connect (mem_fun(*this, &AudioRegionEditor::region_changed));
|
||||||
|
|
@ -408,3 +408,10 @@ AudioRegionEditor::sync_offset_relative_clock_changed ()
|
||||||
|
|
||||||
_session.commit_reversible_command ();
|
_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 bpressed (GdkEventButton* ev, Gtk::SpinButton* but, void (AudioRegionEditor::*pmf)());
|
||||||
gint breleased (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;
|
bool spin_arrow_grab;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue