Camino only - Bug 520407: Read the currently selected bookmark export type, not the initial selection. r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@258631 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1aafbda4ad
commit
584fd89071
@ -1455,15 +1455,14 @@ const int kZoomActionsTag = 108;
|
||||
[savePanel setAccessoryView:mExportPanelView];
|
||||
|
||||
// Set the initial extension based on the remembered value for the output type.
|
||||
int selectedButton = [button indexOfSelectedItem];
|
||||
[self setFileExtension:[button itemAtIndex:selectedButton]];
|
||||
[self setFileExtension:[button itemAtIndex:[button indexOfSelectedItem]]];
|
||||
|
||||
// start the save panel
|
||||
[NSMenu cancelAllTracking];
|
||||
int saveResult = [savePanel runModalForDirectory:nil file:NSLocalizedString(@"ExportedBookmarkFile", @"Exported Bookmarks")];
|
||||
if (saveResult != NSFileHandlingPanelOKButton)
|
||||
return;
|
||||
if (0 == selectedButton)
|
||||
if ([button indexOfSelectedItem] == 0)
|
||||
[[BookmarkManager sharedBookmarkManager] writeHTMLFile:[savePanel filename]];
|
||||
else
|
||||
[[BookmarkManager sharedBookmarkManager] writeSafariFile:[savePanel filename]];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user