* (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
/* If more than one window already opened */
if (g_list_length (priv->window_list) > 1) {
/* 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"));
/* Create the confirmation dialog MSG-NOT308 */
dialog_response = modest_platform_run_confirmation_dialog (
GTK_WINDOW (window), _("emev_nc_close_windows"));