projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify config removal since it's always the active config removed.
[enjoyable.git]
/
ConfigsController.m
diff --git
a/ConfigsController.m
b/ConfigsController.m
index
a9f3f3e
..
d0d8401
100644
(file)
--- a/
ConfigsController.m
+++ b/
ConfigsController.m
@@
-67,16
+67,10
@@
if (tableView.selectedRow == 0)
return;
if (tableView.selectedRow == 0)
return;
- Config *toRemove = _configs[tableView.selectedRow];
[_configs removeObjectAtIndex:tableView.selectedRow];
[_configs removeObjectAtIndex:tableView.selectedRow];
-
- if (toRemove == _currentConfig)
- _currentConfig = _configs[0];
- if (toRemove == manualConfig)
- manualConfig = _configs[0];
-
- [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
[tableView reloadData];
[tableView reloadData];
+ [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
+ [self activateConfig:_configs[0]];
[self save];
}
[self save];
}