equal
deleted
inserted
replaced
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 } |