From: Jose Dapena Paz Date: Mon, 19 Nov 2007 12:23:46 +0000 (+0000) Subject: * src/widgets/modest-window-mgr.c: X-Git-Tag: git_migration_finished~2066 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=4bddd0417667f2980695ed5ba388a5b7c91b0cfa;p=modest * 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 --- 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"));