Skip to content

Commit

Permalink
Fixed a bug that crashes iTerm when a profile is deleted.
Browse files Browse the repository at this point in the history
git-svn-id: https://iterm.svn.sourceforge.net/svnroot/iterm/trunk@1640 a86d2aa4-6e2d-4ff4-9c10-3c044852e7c9
  • Loading branch information
yfabian committed Sep 19, 2008
1 parent 73c9495 commit 6a799ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog
Expand Up @@ -7,6 +7,7 @@
* Minor UI change: Added shortcut key for menu Reset and Return to Default Size.
* UI change: Double-clicking the tab bar now launches new tab.
* UI change: Double-clicking the key-binding list now opens the edit sheet.
* Fixed a bug that crashes iTerm when a profile is deleted.

2008-09-17 fabian

Expand Down
2 changes: 1 addition & 1 deletion iTermDisplayProfileMgr.m
Expand Up @@ -184,8 +184,8 @@ - (void) deleteProfileWithName: (NSString *) profileName
if([profileName length] <= 0)
return;

[profiles removeObjectForKey: profileName];
[self updateBookmarkProfile: profileName with:@"Default"];
[profiles removeObjectForKey: profileName];
}

- (BOOL) isDefaultProfile: (NSString *) profileName
Expand Down
2 changes: 1 addition & 1 deletion iTermKeyBindingMgr.m
Expand Up @@ -153,8 +153,8 @@ - (void) deleteProfileWithName: (NSString *) aString
{
if([aString length] > 0)
{
[profiles removeObjectForKey: aString];
[self updateBookmarkProfile: aString with:@"Default"];
[profiles removeObjectForKey: aString];
}
}

Expand Down
2 changes: 1 addition & 1 deletion iTermTerminalProfileMgr.m
Expand Up @@ -155,8 +155,8 @@ - (void) deleteProfileWithName: (NSString *) profileName
if([profileName length] <= 0)
return;

[profiles removeObjectForKey: profileName];
[self updateBookmarkProfile: profileName with:@"Default"];
[profiles removeObjectForKey: profileName];
}

- (BOOL) isDefaultProfile: (NSString *) profileName
Expand Down

0 comments on commit 6a799ba

Please sign in to comment.