Fix loudness dialog window stacking
This commit is contained in:
parent
fa495b7727
commit
3416af3969
@ -138,6 +138,9 @@ Editor::measure_master_loudness (bool range_selection)
|
||||
_session->master_volume ()->set_value (GAIN_COEFF_UNITY, Controllable::NoGroup);
|
||||
|
||||
LoudnessDialog ld (_session, ar, range_selection);
|
||||
if (own_window ()) {
|
||||
ld.set_transient_for (*own_window ());
|
||||
}
|
||||
|
||||
if (ld.run () == RESPONSE_APPLY) {
|
||||
_session->master_volume ()->set_value (dB_to_coefficient (ld.gain_db ()), Controllable::NoGroup);
|
||||
|
@ -188,10 +188,10 @@ LoudnessDialog::start_analysis ()
|
||||
}
|
||||
|
||||
bool
|
||||
LoudnessDialog::on_delete_event (GdkEventAny*)
|
||||
LoudnessDialog::on_delete_event (GdkEventAny* ev)
|
||||
{
|
||||
cancel_analysis ();
|
||||
return true;
|
||||
return ArdourDialog::on_delete_event (ev);
|
||||
}
|
||||
|
||||
int
|
||||
@ -295,10 +295,9 @@ LoudnessDialog::analyze ()
|
||||
void
|
||||
LoudnessDialog::display_report ()
|
||||
{
|
||||
hide ();
|
||||
ExportReport er ("Export Loudness Report", _status->result_map);
|
||||
er.set_transient_for (*this);
|
||||
er.run();
|
||||
show ();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user