From: helge Date: Sun, 26 Jun 2005 12:11:52 +0000 (+0000) Subject: fixed a Cocoa issue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92c10dc0fe524344475dac807785b4e20a4734bc;p=scalable-opengroupware.org fixed a Cocoa issue git-svn-id: http://svn.opengroupware.org/SOGo/trunk@650 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/MailPartViewers/ChangeLog b/SOGo/UI/MailPartViewers/ChangeLog index e6f3dc7b..b3fc742d 100644 --- a/SOGo/UI/MailPartViewers/ChangeLog +++ b/SOGo/UI/MailPartViewers/ChangeLog @@ -1,3 +1,8 @@ +2005-06-24 Helge Hess + + * UIxMailPartLinkViewer.m: fixed an exception on Cocoa when a mail is + composed from just the HTML body (v0.9.4) + 2005-02-21 Helge Hess * prepared HTML and iCal mail part viewers (0.9.3) diff --git a/SOGo/UI/MailPartViewers/UIxMailPartLinkViewer.m b/SOGo/UI/MailPartViewers/UIxMailPartLinkViewer.m index 76968bac..7842fb3f 100644 --- a/SOGo/UI/MailPartViewers/UIxMailPartLinkViewer.m +++ b/SOGo/UI/MailPartViewers/UIxMailPartLinkViewer.m @@ -38,8 +38,11 @@ /* mail relative path to body-part */ - n = [[self partPath] componentsJoinedByString:@"/"]; - url = [url stringByAppendingString:n]; + if ([(n = [[self partPath] componentsJoinedByString:@"/"]) isNotNull]) { + /* eg this was nil for a draft containing an HTML message */ + url = [url stringByAppendingString:n]; + } + if ([pext isNotNull] && [pext length] > 0) { /* attach extension */ url = [url stringByAppendingString:@"."]; diff --git a/SOGo/UI/MailPartViewers/Version b/SOGo/UI/MailPartViewers/Version index 097483e1..8c2f39ca 100644 --- a/SOGo/UI/MailPartViewers/Version +++ b/SOGo/UI/MailPartViewers/Version @@ -1,5 +1,5 @@ # version file -SUBMINOR_VERSION:=3 +SUBMINOR_VERSION:=4 # v0.9.1 requires libNGMime v4.5.213