From a3bc2be09b4ddd8350de0bff37d3cf4dbbab17b6 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 18 Feb 2015 15:10:28 +0100 Subject: [PATCH] Unwrap file name for dialog --- AVRsack/ASProjDoc.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AVRsack/ASProjDoc.swift b/AVRsack/ASProjDoc.swift index 1bdb23e..e801bb4 100644 --- a/AVRsack/ASProjDoc.swift +++ b/AVRsack/ASProjDoc.swift @@ -314,7 +314,7 @@ class ASProjDoc: NSDocument, NSOutlineViewDelegate, NSMenuDelegate, NSOpenSavePa var name : String var ref : String if selection.count == 1 { - name = "file “\(selection[0].url.lastPathComponent)”" + name = "file “\(selection[0].url.lastPathComponent!)”" ref = "reference to it" } else { name = "\(selection.count) selected files"