appinstaller/AppinstUi/Plugin/SisxUI/Src/SisxUIHandler.cpp
branchRCL_3
changeset 24 5cc91383ab1e
parent 0 ba25891c3a9e
child 25 7333d7932ef7
equal deleted inserted replaced
23:cd189dac02f7 24:5cc91383ab1e
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   476 
   476 
   477     // Display "Replace?" confirmation query only if the new version is older
   477     // Display "Replace?" confirmation query only if the new version is older
   478     // than the currently installed old version (i.e. when downgrading). See
   478     // than the currently installed old version (i.e. when downgrading). See
   479     // also User::QueryVersionSupported() although it has bit different meaning.
   479     // also User::QueryVersionSupported() although it has bit different meaning.
   480     TBool downgrading = ( newVersion.iMajor < oldVersion.iMajor ||
   480     TBool downgrading = ( newVersion.iMajor < oldVersion.iMajor ||
   481             ( newVersion.iMajor == oldVersion.iMajor && newVersion.iMinor < oldVersion.iMinor ) );
   481             ( newVersion.iMajor == oldVersion.iMajor && newVersion.iMinor < oldVersion.iMinor ) ||
       
   482             ( newVersion.iMajor == oldVersion.iMajor && newVersion.iMinor == oldVersion.iMinor &&
       
   483                 newVersion.iBuild < oldVersion.iBuild ) );
   482     if( !downgrading )
   484     if( !downgrading )
   483         {
   485         {
   484         iShowingDialog = EFalse;
   486         iShowingDialog = EFalse;
   485         return ETrue;
   487         return ETrue;
   486         }
   488         }