--- a/filemanager/App/src/CFileManagerBackupView.cpp Fri Feb 19 22:41:53 2010 +0200
+++ b/filemanager/App/src/CFileManagerBackupView.cpp Fri Mar 12 15:41:37 2010 +0200
@@ -112,10 +112,7 @@
{
FUNC_LOG
- if ( iContainer )
- {
- iContainer->RefreshListL( iIndex );
- }
+ TRAP_IGNORE( RefreshSettingsL() );
}
// ----------------------------------------------------------------------------
--- a/filemanager/App/src/CFileManagerFileListContainer.cpp Fri Feb 19 22:41:53 2010 +0200
+++ b/filemanager/App/src/CFileManagerFileListContainer.cpp Fri Mar 12 15:41:37 2010 +0200
@@ -210,14 +210,18 @@
TUid enabledViewUid = enabledViewId.iViewUid;
CAknView* enabledView = iAppUi->View( enabledViewUid );
- CEikMenuBar* menuBar = enabledView->MenuBar();
+ CEikMenuBar* menuBar = NULL;
+ if ( iAppUi->IsFileManagerView( enabledViewUid ) )
+ {
+ menuBar = enabledView->MenuBar();
+ }
switch( aKeyEvent.iCode )
{
case EKeyEnter: // FALLTHROUH
case EKeyOK:
{
- if ( menuBar->ItemSpecificCommandsEnabled() )
+ if ( ( menuBar != NULL ) && menuBar->ItemSpecificCommandsEnabled() )
{
iAppUi->ProcessCommandL( EFileManagerSelectionKey );
response = EKeyWasConsumed;
@@ -227,7 +231,7 @@
case EKeyDelete: // FALLTHROUGH
case EKeyBackspace:
{
- if ( menuBar->ItemSpecificCommandsEnabled() )
+ if ( ( menuBar != NULL ) && menuBar->ItemSpecificCommandsEnabled() )
{
iAppUi->ProcessCommandL( EFileManagerDelete );
response = EKeyWasConsumed;
--- a/filemanager/View/src/CFileManagerFileNameQueryDlg.cpp Fri Feb 19 22:41:53 2010 +0200
+++ b/filemanager/View/src/CFileManagerFileNameQueryDlg.cpp Fri Mar 12 15:41:37 2010 +0200
@@ -160,15 +160,16 @@
TUint32 fileType( 0 );
TRAPD( err, fileType = iEngine.FileTypeL( ptrUserTextFullPath ) );
- if ( err != KErrNone && err != KErrAccessDenied )
+ if ( err != KErrNone && err != KErrNotFound && err != KErrAccessDenied )
{
User::Leave( err );
}
- if( ( fileType & ( CFileManagerItemProperties::EOpen |
+ if( ( err == KErrNotFound ) ||
+ ( err == KErrAccessDenied ) ||
+ ( fileType & ( CFileManagerItemProperties::EOpen |
CFileManagerItemProperties::EReadOnly |
- CFileManagerItemProperties::EFolder ) ) ||
- ( err == KErrAccessDenied ) )
+ CFileManagerItemProperties::EFolder ) ) )
{
FileManagerDlgUtils::ShowInfoNoteL(
R_QTN_FLDR_NAME_ALREADY_USED, Text() );