diff -r cb62a4f66ebe -r 6297cdf66332 webengine/widgetregistry/Server/src/WidgetMMCHandler.cpp --- a/webengine/widgetregistry/Server/src/WidgetMMCHandler.cpp Thu Jan 07 13:31:38 2010 +0200 +++ b/webengine/widgetregistry/Server/src/WidgetMMCHandler.cpp Mon Jan 18 21:20:18 2010 +0200 @@ -1,22 +1,26 @@ -/* -* Copyright (c) 2006 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" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Handle notifications of MMC events. -* -* -* -*/ +// +// ============================================================================ +// Name : WidgetMMCHandler.cpp +// Part of : SW Installer UIs / WidgetInstallerUI +// +// Description: Handle notifications of MMC events. +// +// +// Version : 3.1 +// +// Copyright © 2006 Nokia Corporation. +// This material, including documentation and any related +// computer programs, is protected by copyright controlled by +// Nokia Corporation. All rights are reserved. Copying, +// including reproducing, storing, adapting or translating, any +// or all of this material requires the prior written consent of +// Nokia Corporation. This material also contains confidential +// information which may not be disclosed to others without the +// prior written consent of Nokia Corporation. +// ============================================================================== +/// +// INCLUDE FILES #include "WidgetMMCHandler.h" #include "WidgetRegistry.h" @@ -115,7 +119,13 @@ LOG_OPEN; LOG1( "MMC notification status %d", iStatus.Int() ); - if ( iStatus == KErrNone ) + TInt status = iStatus.Int(); + + // Request the notification before scanning + iFs.NotifyChange( ENotifyDisk, iStatus ); + SetActive(); + + if ( status == KErrNone ) { TInt driveFlags = 0; TInt deltaDriveFlags = 0; @@ -131,9 +141,6 @@ } LOG( "MMC notification done" ); LOG_CLOSE; - - iFs.NotifyChange( ENotifyDisk, iStatus ); - SetActive(); } // ============================================================================