installationservices/swi/source/swis/server/restorecontroller.cpp
branchRCL_3
changeset 25 7333d7932ef7
parent 0 ba25891c3a9e
child 26 8b7f4e561641
--- a/installationservices/swi/source/swis/server/restorecontroller.cpp	Thu Aug 19 10:02:49 2010 +0300
+++ b/installationservices/swi/source/swis/server/restorecontroller.cpp	Tue Aug 31 15:21:33 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -93,13 +93,15 @@
 			application->UserSelections().SetDrive(iInstallDrive);		
 			
 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
-			if ( noOfMatchingLanguages )
-				{
+			if (noOfMatchingLanguages)
+				{				
 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
-					{
-					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
-					}
+					{		
+					DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
+					application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);					
+					}				
 				}
+			++matchingLanguageCount;
  			break;
  		
  		case EInstPartialUpgrade:
@@ -128,13 +130,16 @@
 			application->UserSelections().SetDrive(iAugmentationDrives[augmentationIndex++]);
 			
 			//if there are macthing languages then populate iMatchingDeviceLanguages array of application object
-			if ( noOfMatchingLanguages )
-				{
+			if ( noOfMatchingLanguages)
+				{				
 				while( iMatchingSupportedLanguagesArray[matchingLanguageCount] != ELangNone)
 					  {
-					   application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
-					  }
+					  DEBUG_PRINTF2(_L8("Device matching language for Restore - %d"),iMatchingSupportedLanguagesArray[matchingLanguageCount]);
+					  application->PopulateMatchingDeviceLanguagesL(iMatchingSupportedLanguagesArray[matchingLanguageCount++]);
+					   
+					  }				
 				}
+			++matchingLanguageCount;
 			break;
  			
  		default: