psln/Src/PslnGeneralThemeContainer.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 9 aabf2c525e0f
child 18 0aa5fbdfbc30
--- a/psln/Src/PslnGeneralThemeContainer.cpp	Mon Mar 15 12:41:34 2010 +0200
+++ b/psln/Src/PslnGeneralThemeContainer.cpp	Wed Mar 31 21:59:52 2010 +0300
@@ -282,6 +282,7 @@
         }
     CleanupStack::PopAndDestroy( skinName );
     
+    iActiveSkinItemIndex = currentlyActiveSkinIndex + downloadAdded;
     if ( iOldSkinNum != maxSkinIndex )
         {
         iToBeUsedIndex = currentlyActiveSkinIndex + downloadAdded;
@@ -290,12 +291,10 @@
          ( iToBeUsedIndex <= ( maxSkinIndex + downloadAdded ) ) )
         {
         SetCurrentItemIndex( iToBeUsedIndex );
-        iActiveSkinItemIndex = iToBeUsedIndex;
         }
     else
         {    
-        SetCurrentItemIndex( ( currentlyActiveSkinIndex + downloadAdded ) );
-        iActiveSkinItemIndex = currentlyActiveSkinIndex + downloadAdded;
+        SetCurrentItemIndex( currentlyActiveSkinIndex + downloadAdded );
         }
     iListBox->HandleItemAdditionL();
     if ( iOldSkinNum != maxSkinIndex )