Fix some leak and typo.

This commit is contained in:
Damiano Galassi committed 2018-02-22 13:26:39 +01:00
1 parent f0db0c9969
commit a17eb139ba
4 files changed
+20 -11

No files matched your search

+2
View File
@@ -158,6 +158,7 @@ class TracksViewController: NSViewController, NSTableViewDataSource, NSTableView
case trackNameColumn?:
let cell = tableView.makeView(withIdentifier: trackNameColumn, owner:self) as? NSTableCellView
cell?.textField?.stringValue = track.name
cell?.textField?.isEditable = true
return cell
case trackDurationColumn?:
@@ -203,6 +204,7 @@ class TracksViewController: NSViewController, NSTableViewDataSource, NSTableView
case trackNameColumn?:
let cell = tableView.makeView(withIdentifier: trackNameColumn, owner:self) as? NSTableCellView
cell?.textField?.stringValue = NSLocalizedString("Metadata", comment: "")
cell?.textField?.isEditable = false
return cell
case trackDurationColumn?: