diff --git a/src/gui/folderwatcher_mac.cpp b/src/gui/folderwatcher_mac.cpp index 988d20377f51a..fcce031cdaf66 100644 --- a/src/gui/folderwatcher_mac.cpp +++ b/src/gui/folderwatcher_mac.cpp @@ -101,7 +101,7 @@ void FolderWatcherPrivate::startWatching() CFRelease(pathsToWatch); CFRelease(folderCF); - FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); + FSEventStreamSetDispatchQueue(_stream, dispatch_get_main_queue()); FSEventStreamStart(_stream); }