Ticket #14488: sample-ext-hack.diff

File sample-ext-hack.diff, 537 bytes (added by dghart, 6 years ago)
  • samples/fswatcher/fswatcher.cpp

    diff --git a/samples/fswatcher/fswatcher.cpp b/samples/fswatcher/fswatcher.cpp
    index 0a9753d..e134984 100644
    a b void MyFrame::AddEntry(wxFSWPathType type, wxString filename) 
    361361            break;
    362362
    363363        case wxFSWPath_Tree:
    364             ok = m_watcher->AddTree(wxFileName::DirName(filename));
     364            ok = m_watcher->AddTree(wxFileName::DirName(filename), wxFSW_EVENT_ALL, "*.txt");
    365365            prefix = "Tree: ";
    366366            break;
    367367