Skip to content

Commit

Permalink
Merge pull request #19 from alexzielenski/dev
Browse files Browse the repository at this point in the history
merge tag
  • Loading branch information
alexzielenski committed Feb 6, 2014
2 parents f52c1c6 + 58dabb3 commit 850926d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Mousecape/Mousecape/Mousecape-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>0.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>965</string>
<string>967</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Mousecape/Mousecape/src/controllers/MCLibraryController.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (void)addCape:(MCCursorLibrary *)cape {
NSLog(@"Not adding %@ to the library because an object with that identifier already exists", cape.identifier);
return;
}

if (!cape) {
NSLog(@"Cannot add nil cape");
return;
Expand Down
7 changes: 7 additions & 0 deletions Mousecape/Mousecape/src/models/MCCursorLibrary.m
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ - (NSSet *)cursorsWithIdentifier:(NSString *)identifier {
}

- (void)addCursor:(MCCursor *)cursor {
if ([self.cursors containsObject:cursor]) {
// Don't unnecessarily add a cursor/register observers with it because the
// observation info will leak when it gets dereferenced since we don't do it here
// since NSSet just silently skips items it already has
return;
}

NSSet *change = [NSSet setWithObject:cursor];

[[self.undoManager prepareWithInvocationTarget:self] removeCursor:cursor];
Expand Down

0 comments on commit 850926d

Please sign in to comment.