]> err.no Git - scalable-opengroupware.org/commitdiff
fixed a Cocoa issue
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sun, 26 Jun 2005 12:11:52 +0000 (12:11 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sun, 26 Jun 2005 12:11:52 +0000 (12:11 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@650 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/MailPartViewers/ChangeLog
SOGo/UI/MailPartViewers/UIxMailPartLinkViewer.m
SOGo/UI/MailPartViewers/Version

index e6f3dc7bc23a0ebf2784ca5e1ab4aacdde287617..b3fc742dac0424ff0043f200d9a3fb5b99c25498 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-24  Helge Hess  <helge.hess@opengroupware.org>
+
+       * 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  <helge.hess@opengroupware.org>
 
        * prepared HTML and iCal mail part viewers (0.9.3)
index 76968baccc4bc4a3174351f62c3e7b7f2d858c79..7842fb3f2763aa3d2ab6a30a383a7d4c9d297bfc 100644 (file)
   
   /* 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:@"."];
index 097483e1b2b235047f686a09f2e0ca2f813018e7..8c2f39ca00706901a3c707d87173d97ddab61262 100644 (file)
@@ -1,5 +1,5 @@
 # version file
 
-SUBMINOR_VERSION:=3
+SUBMINOR_VERSION:=4
 
 # v0.9.1 requires libNGMime v4.5.213