2007-06-27 Murray Cumming <murrayc@murrayc.com
[modest] / src / modest-ui-actions.c
index 0e48aa6..383e38e 100644 (file)
@@ -659,11 +659,16 @@ open_msg_cb (ModestMailOperation *mail_op,
                gtk_widget_show_all (GTK_WIDGET(win));
        }
 
+       /* Update toolbar dimming state */
+       if (MODEST_IS_MAIN_WINDOW (parent_win)) {
+               modest_ui_actions_check_toolbar_dimming_rules (MODEST_WINDOW (parent_win));
+       }
+
 cleanup:
        /* Free */
        g_free(account);
        g_object_unref (parent_win);
-       g_object_unref (msg);
+/*     g_object_unref (msg); */
        g_object_unref (folder);
 }
 
@@ -905,7 +910,7 @@ cleanup:
                g_object_unref (G_OBJECT (new_msg));
        if (account)
                g_object_unref (G_OBJECT (account));
-       g_object_unref (msg);
+/*     g_object_unref (msg); */
        g_object_unref (header);
 }