diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-02-08 15:27:44 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2016-02-08 15:30:08 +0300 |
commit | f140d3447c43e64626fb70194b65e727925b5181 (patch) | |
tree | 54e00cea5952bbd5a41ce7c00e72c71e99a29b34 /src/gui/folderwatcher_mac.cpp | |
parent | 6b643c7501be0802b82334d220c0f60a132f7770 (diff) |
OS X: Fix the file system watcher ignoring unicode paths #4424
Add a missing string normalization when fetching the path
from the file system event.
Diffstat (limited to 'src/gui/folderwatcher_mac.cpp')
-rw-r--r-- | src/gui/folderwatcher_mac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderwatcher_mac.cpp b/src/gui/folderwatcher_mac.cpp index 9a165387f..ada7f1064 100644 --- a/src/gui/folderwatcher_mac.cpp +++ b/src/gui/folderwatcher_mac.cpp @@ -63,7 +63,7 @@ static void callback( qstring.resize(pathLength); CFStringGetCharacters(path, CFRangeMake(0, pathLength), reinterpret_cast<UniChar *>(qstring.data())); - paths.append(qstring); + paths.append(qstring.normalized(QString::NormalizationForm_C)); } reinterpret_cast<FolderWatcherPrivate*>(clientCallBackInfo)->doNotifyParent(paths); |