filemanager/App/src/Cfilemanagersearchresultsview.cpp
branchRCL_3
changeset 22 f5c50b8af68c
parent 21 65326cf895ed
equal deleted inserted replaced
21:65326cf895ed 22:f5c50b8af68c
    88 // CFileManagerSearchResultsView::DirectoryChangedL
    88 // CFileManagerSearchResultsView::DirectoryChangedL
    89 // 
    89 // 
    90 // -----------------------------------------------------------------------------
    90 // -----------------------------------------------------------------------------
    91 // 
    91 // 
    92 void CFileManagerSearchResultsView::DirectoryChangedL()
    92 void CFileManagerSearchResultsView::DirectoryChangedL()
    93 	{
    93     {
    94     FUNC_LOG
    94     FUNC_LOG
    95 
    95 
    96     RefreshTitleL();
    96     RefreshTitleL();
    97 
    97 
    98     if ( iContainer )
    98     if ( !iContainer )
    99         {
    99         {
   100         iContainer->RefreshListL( iIndex );
   100         return;
   101         UpdateCbaL();
   101         }
   102         }
   102     // Get current drive's drive info cache.
   103     }
   103     TFileManagerDriveInfo& drvInfo( DriveInfo() );
       
   104     // Ensure drive info is updated. 
       
   105     iEngine.GetDriveInfoL( drvInfo.iDrive, drvInfo );
       
   106     // Manually deactivate marking mode if current drive 
       
   107     // is not available.
       
   108     if ( drvInfo.iState & TFileManagerDriveInfo::EDriveInUse || 
       
   109          !( drvInfo.iState & TFileManagerDriveInfo::EDrivePresent ) )
       
   110         {
       
   111         if (iContainer->IsMarkingModeActivated() )
       
   112             {
       
   113             iContainer->SetMarkingMode( EFalse );
       
   114             }
       
   115         }
       
   116 
       
   117     iContainer->RefreshListL( iIndex );
       
   118     UpdateCbaL();
       
   119     }
       
   120 
   104 // -----------------------------------------------------------------------------
   121 // -----------------------------------------------------------------------------
   105 // CFileManagerSearchResultsView::Id
   122 // CFileManagerSearchResultsView::Id
   106 // 
   123 // 
   107 // -----------------------------------------------------------------------------
   124 // -----------------------------------------------------------------------------
   108 // 
   125 //