diff --git a/build/macosx/platform_specific_code/juce_mac_FileChooser.cpp b/build/macosx/platform_specific_code/juce_mac_FileChooser.cpp index 1d20e5d7d8..b18847fbdf 100644 --- a/build/macosx/platform_specific_code/juce_mac_FileChooser.cpp +++ b/build/macosx/platform_specific_code/juce_mac_FileChooser.cpp @@ -207,6 +207,9 @@ void FileChooser::showPlatformDialog (OwnedArray& 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;