Fix #19: Colon in Name Prevents Opening Save Dialog

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1446 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-07-21 17:12:49 +00:00
parent 4bdd0d5c01
commit 70fb9d612b
+1 -1
View File
@@ -548,7 +548,7 @@ void SetWindow::onFileExportMenu(wxCommandEvent& ev) {
void SetWindow::onFileExportImage(wxCommandEvent&) {
CardP card = current_panel->selectedCard();
if (!card) return; // no card selected
String name = wxFileSelector(_TITLE_("save image"), settings.default_export_dir, card->identification(), _(""),
String name = wxFileSelector(_TITLE_("save image"), settings.default_export_dir, clean_filename(card->identification()), _(""),
_("JPEG images (*.jpg)|*.jpg|Windows bitmaps (*.bmp)|*.bmp|PNG images (*.png)|*.png|GIF images (*.gif)|*.gif|TIFF images (*.tif)|*.tif"),
wxSAVE | wxOVERWRITE_PROMPT, this);
if (!name.empty()) {