Fix duplicate entries when merges don't conflict.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 13 Mar 2013 11:34:10 +0000 (12:34 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 13 Mar 2013 11:34:10 +0000 (12:34 +0100)
Classes/NJMappingsController.m
Info.plist

index 772b14ab6baab7b27ea2989f978bdd7a0ec8d88d..4a9c3fffaba6ccc82c42fde5cf827bbd10a65b00 100644 (file)
                                      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];
index 2aada49210af30e3fdf4c7c6fdd6cb1839770446..04d4b4b396751ef47abdd00b9817b648eea6c347 100644 (file)
@@ -46,7 +46,7 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>226</string>
+       <string>228</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>