From 59b6eb0926927965770a693b5313ab3ff8cd6dd2 Mon Sep 17 00:00:00 2001 From: Joeri van Oostveen Date: Mon, 10 Feb 2014 12:32:52 +0100 Subject: [PATCH] When removing (or adding) an entry in the combined host file, the contents should update. Fixes #5. --- Source/CombinedHostsPredicateController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/CombinedHostsPredicateController.m b/Source/CombinedHostsPredicateController.m index 68fd25c..ec9a3d0 100644 --- a/Source/CombinedHostsPredicateController.m +++ b/Source/CombinedHostsPredicateController.m @@ -54,10 +54,11 @@ - (void)awakeFromNib - (IBAction)predicateEditorChanged:(id)sender { + [self updateHostsFileContents]; + NSInteger newRowCount = [predicateEditor numberOfRows]; if (newRowCount == rowCount) { - [self updateHostsFileContents]; return; }