1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00
This commit is contained in:
jules 2008-06-18 10:13:53 +00:00
parent 0626694ddb
commit 2c77b60650

View file

@ -207,6 +207,9 @@ void FileChooser::showPlatformDialog (OwnedArray<File>& results,
options.clientName = PlatformUtilities::juceStringToCFString (name);
CFStringRef message = PlatformUtilities::juceStringToCFString (title);
if (userInfo.defaultLocationValid)
options.saveFileName = PlatformUtilities::juceStringToCFString (currentFileOrDirectory.getFileName());
// nasty layout bug if the message text is set for a directory browser..
if (selectsDirectory)
options.windowTitle = message;