Fix loudness dialog window stacking

This commit is contained in:
Robin Gareus 2020-07-22 00:00:29 +02:00
parent fa495b7727
commit 3416af3969
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 6 additions and 4 deletions

View File

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

View File

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