git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5969a7b
)
Fixed the delete key in the prefs table view.
author
Kent Sutherland
<ksuther@ithinksw.com>
Wed, 24 Sep 2003 01:34:05 +0000
(
01:34
+0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Wed, 24 Sep 2003 01:34:05 +0000
(
01:34
+0000)
PreferencesController.m
patch
|
blob
|
history
diff --git
a/PreferencesController.m
b/PreferencesController.m
index
8849759
..
c2af444
100755
(executable)
--- a/
PreferencesController.m
+++ b/
PreferencesController.m
@@
-429,12
+429,19
@@
static PreferencesController *prefs = nil;
int selRow = [tableView selectedRow];
if (selRow != - 1) {
NSString *object = [myItems objectAtIndex:selRow];
+
+ if ([object isEqualToString:@"preferences"]) {
+ NSBeep();
+ return;
+ }
+
if (![object isEqualToString:@"separator"])
[availableItems addObject:object];
[myItems removeObjectAtIndex:selRow];
[menuTableView reloadData];
[allTableView reloadData];
}
+ [self changeMenus:self];
}
}