- wxCHECK_MSG( m_watches.find(winfo.GetPath()) == m_watches.end(), false,
- "Path '%s' is already watched");
+ if ( m_watches.find(winfo.GetPath()) != m_watches.end() )
+ {
+ wxLogTrace(wxTRACE_FSWATCHER,
+ "Path '%s' is already watched", winfo.GetPath());
+ // This can happen if a dir is watched, then a parent tree added
+ return true;
+ }