diff --git a/src/gui/set/window.cpp b/src/gui/set/window.cpp index b4dc3065..50d63c48 100644 --- a/src/gui/set/window.cpp +++ b/src/gui/set/window.cpp @@ -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()) {