Unwrap file name for dialog

This commit is contained in:
Matthias Neeracher 2015-02-18 15:10:28 +01:00 committed by Matthias Neeracher
parent 22a2be87d7
commit a3bc2be09b

View File

@ -314,7 +314,7 @@ class ASProjDoc: NSDocument, NSOutlineViewDelegate, NSMenuDelegate, NSOpenSavePa
var name : String var name : String
var ref : String var ref : String
if selection.count == 1 { if selection.count == 1 {
name = "file “\(selection[0].url.lastPathComponent)" name = "file “\(selection[0].url.lastPathComponent!)"
ref = "reference to it" ref = "reference to it"
} else { } else {
name = "\(selection.count) selected files" name = "\(selection.count) selected files"