From 47a530c22a3f277d11e7ddb4b0147c8f93f6f9cd Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Wed, 13 Mar 2013 12:34:10 +0100 Subject: [PATCH] Fix duplicate entries when merges don't conflict. --- Classes/NJMappingsController.m | 4 ++++ Info.plist | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/NJMappingsController.m b/Classes/NJMappingsController.m index 772b14a..4a9c3ff 100644 --- a/Classes/NJMappingsController.m +++ b/Classes/NJMappingsController.m @@ -247,6 +247,10 @@ didEndSelector:@selector(mappingConflictDidResolve:returnCode:contextInfo:) contextInfo:(void *)CFBridgingRetain(@{ @"old mapping": mergeInto, @"new mapping": mapping })]; + } else if (mergeInto) { + [mergeInto mergeEntriesFrom:mapping]; + [self activateMapping:mergeInto]; + [self mappingsChanged]; } else { [_mappings addObject:mapping]; [self activateMapping:mapping]; diff --git a/Info.plist b/Info.plist index 2aada49..04d4b4b 100644 --- a/Info.plist +++ b/Info.plist @@ -46,7 +46,7 @@ CFBundleSignature ???? CFBundleVersion - 226 + 228 LSApplicationCategoryType public.app-category.utilities NSHumanReadableCopyright -- 2.30.2