* Fixes NB#86208 merged from trunk r4607
authorSergio Villar Senin <svillar@igalia.com>
Mon, 13 Oct 2008 10:17:48 +0000 (10:17 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 13 Oct 2008 10:17:48 +0000 (10:17 +0000)
pmo-diablo-r6022

src/widgets/modest-window-mgr.c

index 86acaab..ef38350 100644 (file)
@@ -753,8 +753,10 @@ on_window_destroy (ModestWindow *window,
                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)))
+                       if (!gtk_window_has_toplevel_focus (GTK_WINDOW (window))) {
                                gtk_window_present (GTK_WINDOW (window));
+                               priv->current_top = window;
+                       }
                        /* Create the confirmation dialog MSG-NOT308 */
                        dialog_response = modest_platform_run_confirmation_dialog (
                                        GTK_WINDOW (window), _("emev_nc_close_windows"));