X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fccda2ced58ad3cef3d272777725f6f0ff3a442..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/common/fswatchercmn.cpp?ds=sidebyside diff --git a/src/common/fswatchercmn.cpp b/src/common/fswatchercmn.cpp index 9891bb7f3c..14c16bb543 100644 --- a/src/common/fswatchercmn.cpp +++ b/src/common/fswatchercmn.cpp @@ -199,7 +199,7 @@ bool wxFileSystemWatcherBase::AddTree(const wxFileName& path, int events, wxDir dir(path.GetFullPath()); // Prevent asserts or infinite loops in trees containing symlinks - int flags = wxDIR_DEFAULT; // TODO: we ignore files, so why use wxDIR_FILES? + int flags = wxDIR_DIRS; if ( !path.ShouldFollowLink() ) { flags |= wxDIR_NO_FOLLOW; @@ -270,7 +270,7 @@ bool wxFileSystemWatcherBase::RemoveTree(const wxFileName& path) // infinite loops in trees containing symlinks. We need to do the same // or we'll try to remove unwatched items. Let's hope the caller used // the same ShouldFollowLink() setting as in AddTree()... - int flags = wxDIR_DEFAULT; // See the TODO in AddTree() + int flags = wxDIR_DIRS; if ( !path.ShouldFollowLink() ) { flags |= wxDIR_NO_FOLLOW;