From c28f262ec456c760b9ce20754f379b5b6a0a350e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 16 Apr 2012 23:55:04 +0000 Subject: [PATCH] Use a save file dialog when extracting attachments rather than an open one Originally committed to SVN as r6705. --- aegisub/src/dialog_attachments.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aegisub/src/dialog_attachments.cpp b/aegisub/src/dialog_attachments.cpp index fda5a871e..444685d8d 100644 --- a/aegisub/src/dialog_attachments.cpp +++ b/aegisub/src/dialog_attachments.cpp @@ -187,7 +187,14 @@ void DialogAttachments::OnExtract(wxCommandEvent &) { else { // Default path 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; } if (!path) return;