Changeset 1668 for trunk/dll/grep.c


Ignore:
Timestamp:
Aug 6, 2012, 1:23:54 AM (13 years ago)
Author:
Gregg Young
Message:

Always sort "Find Dups" by filename in the collector. (Ticket 8)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1665 r1668  
    4141  05 Aug 12 GKY Replace SleepIfNeeded with IdleIfNeeded to improve IU response during long searches; it
    4242                will switch between normal and idle priority and back.
     43  05 Aug 12 GKY Always sort "Find Dups" by filename in the collector.
    4344
    4445***********************************************************************/
     
    7677#include "fortify.h"
    7778#include "init.h"                       // Golbal semaphore
     79#include "sortcnr.h"                    // SortCollectorCnr
     80#include "collect.h"
    7881
    7982static VOID DoAllSubdirs(GREP *grep,
     
    425428      {
    426429        FillDupes(&grep, &itdSleep, &itdReport);
     430        CollectorsortFlags = 0;
     431        CollectorsortFlags |= SORT_FILENAME;
     432        WinSendMsg(grep.hwndFiles, CM_SORTRECORD, MPFROMP(SortCollectorCnr),
     433                   MPFROMLONG(CollectorsortFlags));
     434        SaySort(WinWindowFromID(WinQueryWindow(grep.hwndFiles, QW_PARENT),
     435                                DIR_SORT), CollectorsortFlags, FALSE);
    427436      }
    428 
    429437      if (!PostMsg(grep.hwndFiles, UM_CONTAINER_FILLED, MPVOID, MPVOID))        // tell window we're done
    430438        WinSendMsg(grep.hwndFiles, UM_CONTAINER_FILLED, MPVOID, MPVOID);
Note: See TracChangeset for help on using the changeset viewer.