X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/092e08a84402d6e7c315a8a77a146e4eb62e0fb7..19058c767032643f53367d1bc11df14e2474f15f:/src/common/fswatchercmn.cpp diff --git a/src/common/fswatchercmn.cpp b/src/common/fswatchercmn.cpp index 2990795fb6..51d9d578f8 100644 --- a/src/common/fswatchercmn.cpp +++ b/src/common/fswatchercmn.cpp @@ -100,7 +100,10 @@ bool wxFileSystemWatcherBase::Add(const wxFileName& path, int events) } else { - wxLogError(_("Can't monitor non-existent path \"%s\" for changes."), + // Don't overreact to being passed a non-existent item. It may have + // only just been deleted, in which case doing nothing is correct + wxLogTrace(wxTRACE_FSWATCHER, + "Can't monitor non-existent path \"%s\" for changes.", path.GetFullPath()); return false; } @@ -130,7 +133,7 @@ wxFileSystemWatcherBase::AddAny(const wxFileName& path, if ( it == m_watches.end() ) { wxFSWatchInfoMap::value_type val(canonical, watch); - m_watches.insert(val).second; + m_watches.insert(val); } else {