X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-msg-edit-window.c;h=6898f64bbbcaa4f7a9ce9ce1e48127400d8c8882;hp=d302bf3a02cf9717cb66b263c2b96b4db068cad0;hb=c96b53b53e89a1389910501fafbd609a1eb0a020;hpb=ec86c81f4440ef1ccfe473cd9465f569e7271e15 diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index d302bf3..6898f64 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -1588,8 +1588,12 @@ modest_msg_edit_window_new (TnyMsg *msg, const gchar *account_name, const gchar } else if (modest_account_mgr_account_is_multimailbox (modest_runtime_get_account_mgr (), account_name, NULL)) { /* We set the first mailbox as the active mailbox */ priv->original_mailbox = multimailbox_get_default_mailbox (account_name); - modest_selector_picker_set_active_id (MODEST_SELECTOR_PICKER (priv->from_field), - (gpointer) priv->original_mailbox); + if (priv->original_mailbox != NULL) + modest_selector_picker_set_active_id (MODEST_SELECTOR_PICKER (priv->from_field), + (gpointer) priv->original_mailbox); + else + modest_selector_picker_set_active_id (MODEST_SELECTOR_PICKER (priv->from_field), + (gpointer) account_name); } else { modest_selector_picker_set_active_id (MODEST_SELECTOR_PICKER (priv->from_field), (gpointer) account_name); }