From d5a73dfca91dccdeea331d83a1741a9b380e97f4 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sun, 16 Sep 2012 11:01:03 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20present=20dot=20files=20as=20ha?= =?UTF-8?q?ving=20an=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is just for the dialog text when user is asked to select a file type. --- Frameworks/DocumentWindow/src/FileTypeDialog.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);