Keep export-format dialog on top of export dialog

This commit is contained in:
Robin Gareus 2022-03-28 18:54:51 +02:00
parent 3f37d54d85
commit 22220c215a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,10 @@ ExportFormatSelector::open_edit_dialog (bool new_dialog)
{
ExportFormatDialog dialog (state->format, new_dialog);
dialog.set_session (_session);
Gtk::Widget* top = get_toplevel();
if (top) {
dialog.set_transient_for (*dynamic_cast<Gtk::Window*>(top));
}
Gtk::ResponseType response = (Gtk::ResponseType) dialog.run();
if (response == Gtk::RESPONSE_APPLY) {
update_format_description ();