Don’t present dot files as having an extension

This is just for the dialog text when user is asked to select a file type.
This commit is contained in:
Allan Odgaard
2012-09-16 11:01:03 +02:00
parent ec4ac60ae4
commit d5a73dfca9

View File

@@ -139,8 +139,9 @@ static NSArray* wrap (std::set<grammar_info_t> 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);