diff --git a/Frameworks/DocumentWindow/src/FileTypeDialog.mm b/Frameworks/DocumentWindow/src/FileTypeDialog.mm index 913e0f8b..f7c57c69 100644 --- a/Frameworks/DocumentWindow/src/FileTypeDialog.mm +++ b/Frameworks/DocumentWindow/src/FileTypeDialog.mm @@ -139,8 +139,9 @@ static NSArray* wrap (std::set const& array) std::string const ext = path::extensions(to_s(path));; if(ext != "") { - variables["X"] = ext; self.persistentSetting = YES; + if(ext != path::name(to_s(path))) + variables["X"] = ext; } std::string const alert = format_string::expand(to_s(alertFormatString), variables);