* Prevent a crash when we didn't get a message in the body.
* src/modest-ui-dimming-rules.c:
* In main window, if focus is on folder view, and no folder is
selected, details should be dimmed (fixes NB#64991).
pmo-trunk-r3352
/* if we don't have a text-part */
/* if we don't have a text-part */
- no_text_part = (strcmp (tny_mime_part_get_content_type (body), "text/html")==0);
+ no_text_part = (!body) || (strcmp (tny_mime_part_get_content_type (body), "text/html")==0);
/* when we're reply, include the text part if we have it, or nothing otherwise. */
if (is_reply)
/* when we're reply, include the text part if we have it, or nothing otherwise. */
if (is_reply)
}
g_object_unref (folder_store);
}
g_object_unref (folder_store);
+ } else {
+ dimmed = TRUE;
+ modest_dimming_rule_set_notification (rule, "");
}
if (!dimmed) {
dimmed = _msg_download_in_progress (win);
}
if (!dimmed) {
dimmed = _msg_download_in_progress (win);