filemanager/App/src/CFileManagerFoldersView.cpp
branchRCL_3
changeset 42 f5c50b8af68c
parent 39 65326cf895ed
child 52 40fb776cbfb3
equal deleted inserted replaced
39:65326cf895ed 42:f5c50b8af68c
   258             }
   258             }
   259             TRAP_IGNORE( RefreshDriveInfoL() );
   259             TRAP_IGNORE( RefreshDriveInfoL() );
   260             TFileManagerDriveInfo& drvInfo( DriveInfo() );
   260             TFileManagerDriveInfo& drvInfo( DriveInfo() );
   261             if ( !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) )
   261             if ( !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) )
   262                 {
   262                 {
   263                 User::Leave(KErrPathNotFound);
   263                 // Manually deactivate marking mode if folder path
       
   264                 // does not exist.
       
   265                 if ( iContainer->IsMarkingModeActivated() )
       
   266                     {
       
   267                     iContainer->SetMarkingMode( EFalse );
       
   268                     }
       
   269                 User::Leave( KErrPathNotFound );
   264                 }
   270                 }
   265             else
   271             else
   266                 {
   272                 {
   267                 TInt index( iEngine.CurrentIndex() );
   273                 TInt index( iEngine.CurrentIndex() );
   268                 if ( index != KErrNotFound )
   274                 if ( index != KErrNotFound )