Use a save file dialog when extracting attachments rather than an open one

Originally committed to SVN as r6705.
This commit is contained in:
Thomas Goyne 2012-04-16 23:55:04 +00:00
parent 8a03e3a374
commit c28f262ec4

View file

@ -187,7 +187,14 @@ void DialogAttachments::OnExtract(wxCommandEvent &) {
else { else {
// Default path // Default path
wxString defPath = ((AssAttachment*)wxUIntToPtr(listView->GetItemData(i)))->GetFileName(); wxString defPath = ((AssAttachment*)wxUIntToPtr(listView->GetItemData(i)))->GetFileName();
path = wxFileSelector(_("Select the path to save the file to:"),lagi_wxString(OPT_GET("Path/Fonts Collector Destination")->GetString()),defPath); path = wxFileSelector(
_("Select the path to save the file to:"),
lagi_wxString(OPT_GET("Path/Fonts Collector Destination")->GetString()),
defPath,
".ttf",
"Font Files (*.ttf)|*.ttf",
wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
this);
fullPath = true; fullPath = true;
} }
if (!path) return; if (!path) return;