]> err.no Git - scalable-opengroupware.org/blobdiff - UI/MailPartViewers/UIxMailPartAlternativeViewer.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1127 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / MailPartViewers / UIxMailPartAlternativeViewer.m
index 95e4e2e7a6cfdd103d951746753858eed3068966..e7ff28aa1f2680aa9d9643ef0ee0ccfd8e562c60 100644 (file)
   if ((count = [_types count]) == 0)
     return NSNotFound;
   
-  /* we always choose text/plain if available */
+  if ((i = [_types indexOfObject:@"text/html"]) != NSNotFound)
+    return i;
   if ((i = [_types indexOfObject:@"text/plain"]) != NSNotFound)
     return i;
-  
+
   /* then we scan for other text types and choose the first one found */
   for (i = 0; i < count; i++) {
     if ([(NSString *)[_types objectAtIndex:i] hasPrefix:@"text/"])