From 040e7dda383a79466e254555c1854efd147fac40 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 30 Oct 2007 17:24:59 +0000 Subject: [PATCH] Monotone-Parent: ba9e6391ee9c1e0fe0680835dcc1e917cea277fb Monotone-Revision: 0f7a7062f9e521fc44b55467166775907a3e3668 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-30T17:24:59 Monotone-Branch: ca.inverse.sogo --- .../UIxMailPartAlternativeViewer.m | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/UI/MailPartViewers/UIxMailPartAlternativeViewer.m b/UI/MailPartViewers/UIxMailPartAlternativeViewer.m index 182894f89..5dc10f575 100644 --- a/UI/MailPartViewers/UIxMailPartAlternativeViewer.m +++ b/UI/MailPartViewers/UIxMailPartAlternativeViewer.m @@ -50,15 +50,15 @@ @implementation UIxMailPartAlternativeViewer - (void)dealloc { - [self->childInfo release]; + [childInfo release]; [super dealloc]; } /* caches */ - (void)resetBodyInfoCaches { - [self->childInfo release]; self->childInfo = nil; - self->childIndex = 0; + [childInfo release]; childInfo = nil; + childIndex = 0; [super resetBodyInfoCaches]; } @@ -110,8 +110,8 @@ - (void)selectChildInfo { unsigned idx; - [self->childInfo release]; self->childInfo = nil; - self->childIndex = 0; + [childInfo release]; childInfo = nil; + childIndex = 0; idx = [self selectPartIndexFromTypes:[self childPartTypes]]; if (idx == NSNotFound) { @@ -120,25 +120,25 @@ return; } - self->childIndex = idx + 1; - self->childInfo = + childIndex = idx + 1; + childInfo = [[[[self bodyInfo] valueForKey:@"parts"] objectAtIndex:idx] retain]; } /* accessors */ - (id)childInfo { - if (self->childInfo == nil) + if (childInfo == nil) [self selectChildInfo]; - return self->childInfo; + return childInfo; } - (unsigned int)childIndex { - if (self->childIndex == 0) + if (childIndex == 0) [self selectChildInfo]; - return self->childIndex - 1; + return childIndex - 1; } - (NSString *)childPartName {