filemanager/App/src/CFileManagerFoldersView.cpp
branchRCL_3
changeset 52 40fb776cbfb3
parent 42 f5c50b8af68c
equal deleted inserted replaced
45:6a0ceb387ac7 52:40fb776cbfb3
   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                 // Manually deactivate marking mode if folder path
   263                 User::Leave(KErrPathNotFound);
   264                 // does not exist.
       
   265                 if ( iContainer->IsMarkingModeActivated() )
       
   266                     {
       
   267                     iContainer->SetMarkingMode( EFalse );
       
   268                     }
       
   269                 User::Leave( KErrPathNotFound );
       
   270                 }
   264                 }
   271             else
   265             else
   272                 {
   266                 {
   273                 TInt index( iEngine.CurrentIndex() );
   267                 TInt index( iEngine.CurrentIndex() );
   274                 if ( index != KErrNotFound )
   268                 if ( index != KErrNotFound )