From b249c4e0aafa5e7efe8a9da97d4dacfe5d4cb22a Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Wed, 22 Nov 2006 17:35:52 +0000 Subject: [PATCH] allow directory creation when saving files/attachments. patch by Hiro. b=360948 r=josh sr=pinkerton (re-landing) git-svn-id: svn://10.0.0.236/trunk@215674 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsFilePicker.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/widget/src/cocoa/nsFilePicker.mm b/mozilla/widget/src/cocoa/nsFilePicker.mm index c180d78e129..bb8e913af5b 100644 --- a/mozilla/widget/src/cocoa/nsFilePicker.mm +++ b/mozilla/widget/src/cocoa/nsFilePicker.mm @@ -304,6 +304,7 @@ nsFilePicker::GetLocalFolder(const nsString& inTitle, nsILocalFile** outFile) [thePanel setCanChooseDirectories:YES]; [thePanel setCanChooseFiles:NO]; [thePanel setResolvesAliases:YES]; //this is default - probably doesn't need to be set + [thePanel setCanCreateDirectories:YES]; // packages != folders [thePanel setTreatsFilePackagesAsDirectories:NO];