From 71e03de66118c8d86255e7d980bfa2992150a3e1 Mon Sep 17 00:00:00 2001 From: Dmitry Obukhov Date: Thu, 6 Oct 2016 16:06:28 +0200 Subject: [PATCH] fix toolbar validation --- RealmTasks Apple/RealmTasks macOS/TaskListViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RealmTasks Apple/RealmTasks macOS/TaskListViewController.swift b/RealmTasks Apple/RealmTasks macOS/TaskListViewController.swift index c868c27..ca67e91 100644 --- a/RealmTasks Apple/RealmTasks macOS/TaskListViewController.swift +++ b/RealmTasks Apple/RealmTasks macOS/TaskListViewController.swift @@ -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 } }