Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
fix toolbar validation
Browse files Browse the repository at this point in the history
  • Loading branch information
stel committed Oct 6, 2016
1 parent a4cc591 commit 71e03de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ extension TaskListViewController {
}

override func validateToolbarItem(theItem: NSToolbarItem) -> Bool {
return theItem.action != #selector(newTask) || currentlyEditingCellView?.text.isEmpty == false
return theItem.action != #selector(newTask) || currentlyEditingCellView == nil || currentlyEditingCellView?.text.isEmpty == false
}
}

Expand Down

0 comments on commit 71e03de

Please sign in to comment.