Fixed filename shown in open file dialog for reload from disk

This commit is contained in:
Enrico Turri
2019-12-13 12:41:46 +01:00
parent 22a2e608f4
commit 4f0db1e909

View File

@@ -3234,7 +3234,7 @@ void Plater::priv::reload_from_disk()
{
// ask user to select the missing file
std::string search = missing_input_paths.back().string();
wxFileDialog dialog(q, _(L("Please select the file to reload:")), "", search, file_wildcards(FT_MODEL), wxFD_OPEN | wxFD_FILE_MUST_EXIST);
wxFileDialog dialog(q, _(L("Please select the file to reload:")), "", from_u8(fs::path(search).filename().string()), file_wildcards(FT_MODEL), wxFD_OPEN | wxFD_FILE_MUST_EXIST);
if (dialog.ShowModal() != wxID_OK)
return;