diff options
author | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-02-19 16:25:19 +0000 |
commit | 2483cd22f74239d2a06c83f1c5d9a25eaab44a7c (patch) | |
tree | 2a8a527b3f418c257e65156efb582f818324c812 /Source/SPCustomQuery.m | |
parent | b7bd2ae9a683652920a6c772eadeca2bac1e7b91 (diff) | |
download | sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.gz sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.tar.bz2 sequelpro-2483cd22f74239d2a06c83f1c5d9a25eaab44a7c.zip |
Bring outline view branch up to date with trunk (r3471:r3481).
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 272c0ebf..307e5c9a 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -464,7 +464,7 @@ #ifndef SP_REFACTOR NSSavePanel *panel = [NSSavePanel savePanel]; - [panel setRequiredFileType:SPFileExtensionSQL]; + [panel setAllowedFileTypes:[NSArray arrayWithObject:SPFileExtensionSQL]]; [panel setExtensionHidden:NO]; [panel setAllowsOtherFileTypes:YES]; @@ -3582,10 +3582,10 @@ [prefs synchronize]; #endif - [[self buildHistoryString] writeToFile:[panel filename] - atomically:YES - encoding:[[encodingPopUp selectedItem] tag] - error:&error]; + [[self buildHistoryString] writeToURL:[panel URL] + atomically:YES + encoding:[[encodingPopUp selectedItem] tag] + error:&error]; if (error) [[NSAlert alertWithError:error] runModal]; } |