diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index a3e9b57de..d36634e9a 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -446,7 +446,12 @@ namespace hex { if (ProjectFile::getProjectFilePath() == "") { View::openFileBrowser("hex.view.hexeditor.save_project"_lang, DialogMode::Save, { { "Project File", "hexproj" } }, [](auto path) { - ProjectFile::store(path); + if (path.ends_with(".hexproj")) { + ProjectFile::store(path); + } + else { + ProjectFile::store(path + ".hexproj"); + } }); } else