From 4bddd0417667f2980695ed5ba388a5b7c91b0cfa Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 19 Nov 2007 12:23:46 +0000 Subject: [PATCH] * src/widgets/modest-window-mgr.c: * (on_window_destroy): now we present the main window if we request to delete it and we need to show the confirmation dialog (fixes NB#74495). pmo-trunk-r3763 --- src/widgets/modest-window-mgr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/modest-window-mgr.c b/src/widgets/modest-window-mgr.c index 42e14e1..47ec037 100644 --- a/src/widgets/modest-window-mgr.c +++ b/src/widgets/modest-window-mgr.c @@ -656,6 +656,9 @@ on_window_destroy (ModestWindow *window, /* If more than one window already opened */ if (g_list_length (priv->window_list) > 1) { + /* Present the window if it's not visible now */ + if (!gtk_window_has_toplevel_focus (GTK_WINDOW (window))) + gtk_window_present (GTK_WINDOW (window)); /* Create the confirmation dialog MSG-NOT308 */ dialog_response = modest_platform_run_confirmation_dialog ( GTK_WINDOW (window), _("emev_nc_close_windows")); -- 1.7.9.5