Enable callbacks for wxFileSystemWatcher FD under OS X.
We need to enable callbacks to get them initially, otherwise no events are ever detected. Closes #13919. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,6 +115,9 @@ wxCFEventLoop::AddSourceForFD(int fd,
|
||||
CFRunLoopRef cfloop = CFGetCurrentRunLoop();
|
||||
CFRunLoopAddSource(cfloop, cfsrc, kCFRunLoopDefaultMode);
|
||||
|
||||
// Enable the callbacks initially.
|
||||
EnableDescriptorCallBacks(cffd, source->GetFlags());
|
||||
|
||||
source->SetFileDescriptor(cffd.release());
|
||||
|
||||
return source.release();
|
||||
|
Reference in New Issue
Block a user