Updating branch refs/heads/master
to e288a7b131aaca2ae9315aba34f3a4714d49a355 (commit)
from 54deaf1940fced5bd4b9ad9dc69ae908644fc957 (commit)
commit e288a7b131aaca2ae9315aba34f3a4714d49a355
Author: Christian Dywan <[email protected]>
Date: Tue Feb 15 22:46:32 2011 +0100
Don't show an error when a message is empty
If the message was a draft, it can quite sensibly be empty and
it is also rather intimidating should an empty message actually
be in the box.
postler/postler-content.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 09b75e8..7cbcf82 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -960,8 +960,10 @@ public class Postler.Content : WebKit.WebView {
display_part (html_part);
else if (text_part != null)
display_part (text_part);
- else
- display_error (_("No text in the message that can be
displayed"));
+ else {
+ text_part = message_parts.nth_data (0);
+ display_part (text_part);
+ }
} catch (GLib.Error error) {
display_error (error.message);
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits