app: keep focus on the quit dialog when saving.

Otherwise the quit dialog is still in front yet it has no focus and
one doesn't see this immediately.
Hitting ctrl-d to exit and ignore any subsequent files for instance
duplicates the current active image instead.
This commit is contained in:
Jehan 2016-10-04 12:08:55 +02:00
parent f67bc227dc
commit 8aa0a04854
1 changed files with 3 additions and 0 deletions

View File

@ -528,6 +528,9 @@ quit_close_all_dialog_save_clicked (GtkCellRenderer *cell,
manager = gimp_image_window_get_ui_manager (window);
gimp_display_shell_present (shell);
/* Make sure the quit dialog kept keyboard focus when
* the save dialog will exit. */
gtk_window_present (GTK_WINDOW (private->dialog));
if (state & GDK_SHIFT_MASK)
{