Whether error was set or not, if there's no mapping, that's an error.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Fri, 15 Mar 2013 22:45:27 +0000 (23:45 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Fri, 15 Mar 2013 22:45:27 +0000 (23:45 +0100)
Classes/NJMappingsController.m
Info.plist

index fa851b15629e23c098b3a1809899f7285a966b5f..c3209ac931a20b365002b88fc96d9494e390c25a 100644 (file)
                                                     mappings:_mappings
                                                        error:&error];
     
-    if (mapping && !error) {
+    if (mapping) {
         NJMapping *mergeInto = self[mapping.name];
         if ([mergeInto hasConflictWith:mapping]) {
             NSAlert *conflictAlert = [[NSAlert alloc] init];
             [self activateMapping:mapping];
             [self mappingsChanged];
         }
-    }
-
-    if (error) {
+    } else {
         [window presentError:error
               modalForWindow:window
                     delegate:nil
index 6dba9179cb505474683f1e9d68e7249643840848..b17e62662a4a1ccc53edb6927fbfc9ba0cd554f1 100644 (file)
@@ -46,7 +46,7 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>305</string>
+       <string>306</string>
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.utilities</string>
        <key>NSHumanReadableCopyright</key>