--- a/pkiutilities/CertmanUi/SRC/CertmanuiviewPersonal.cpp Tue Feb 02 00:44:34 2010 +0200
+++ b/pkiutilities/CertmanUi/SRC/CertmanuiviewPersonal.cpp Fri Feb 19 23:42:03 2010 +0200
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -496,11 +496,17 @@
{
CERTMANUILOGGER_ENTERFN( "CCertManUIViewPersonal::DoDeactivate" );
- iCurrentPosition = iContainerPersonal->iListBox->CurrentItemIndex();
- iTopItem = iContainerPersonal->iListBox->TopItemIndex();
- if ( iContainerPersonal )
+ if( iContainerPersonal )
{
- ((CAknViewAppUi*)iAvkonAppUi)->RemoveFromViewStack(*this, iContainerPersonal);
+ CEikColumnListBox* listBox = iContainerPersonal->iListBox;
+ if( listBox )
+ {
+ iCurrentPosition = listBox->CurrentItemIndex();
+ iTopItem = listBox->TopItemIndex();
+ }
+
+ iAvkonAppUi->RemoveFromViewStack( *this, iContainerPersonal );
+
delete iContainerPersonal;
iContainerPersonal = NULL;
}