Ticket #3232: filezilla3_reset_errorcount_from_failure_queue.patch

File filezilla3_reset_errorcount_from_failure_queue.patch, 806 bytes (added by tommywu, 17 years ago)

patch to reset the counter when move from failure to normal queue

  • src/interface/queueview_failed.cpp

    diff -Nur Filezilla3/src/interface/queueview_failed.cpp Filezilla3.patch/src/interface/queueview_failed.cpp
    old new  
    133133            for (unsigned int i = 0; i < childrenCount; i++)
    134134            {
    135135                CFileItem* pFileItem = (CFileItem*)pItem->GetChild(i, false);
     136                pFileItem->m_errorCount = 0;
    136137                pFileItem->m_statusMessage.Clear();
    137138                pFileItem->SetParent(pServerItem);
    138139                pQueueView->InsertItem(pServerItem, pFileItem);
     
    155156        else
    156157        {
    157158            CFileItem* pFileItem = (CFileItem*)pItem;
     159            pFileItem->m_errorCount = 0;
    158160            pFileItem->m_statusMessage.Clear();
    159161
    160162            CServerItem* pOldServerItem = (CServerItem*)pItem->GetTopLevelItem();