diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-12-09 19:06:01 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-11 15:35:40 +0000 |
commit | a81395f2c604c84cd0e6f18165c766419f26b7ba (patch) | |
tree | ac9b65c3526523c1f28e20a58dac7a4a00d7cf1f /tests/auto/cmake/test_generating_cpp_exports/.cmake.conf | |
parent | 3bf7e0693ec1df01d2d27e28ab38f553beaa9c82 (diff) |
macOS: Use single truth to track file dialog current directory
Unfortunately we can not rely on the file dialog panel for this,
via the directoryURL property, as that property has not yet been
updated during a panel:directoryDidChange: callback, resulting in
the directory reported to the user being the previous directory.
Since we already have to store the current directory for the case
where we haven't yet created the file dialog panel we re-use this
variable as the single place to store the current directory.
It's not clear whether we still need to normalize the strings
we get from the NSSavePanel, but the code has been left in,
even if the old callback code didn't normalize the path that
we then emitted as directoryEntered().
Fixes: QTBUG-119371
Pick-to: 6.7 6.5 6.6 6.2
Change-Id: I379a47053302e73d5e06a2b941f40365c17390d5
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_generating_cpp_exports/.cmake.conf')
0 files changed, 0 insertions, 0 deletions