projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash when no action is available.
[enjoyable.git]
/
TargetController.m
diff --git
a/TargetController.m
b/TargetController.m
index
3442a61
..
82eec03
100644
(file)
--- a/
TargetController.m
+++ b/
TargetController.m
@@
-37,7
+37,7
@@
case 0: // none
return NULL;
case 1: // key
case 0: // none
return NULL;
case 1: // key
- if(
[keyInput hasKey]
) {
+ if(
keyInput.hasKey
) {
TargetKeyboard* k = [[TargetKeyboard alloc] init];
[k setVk: [keyInput vk]];
[k setDescr: [keyInput descr]];
TargetKeyboard* k = [[TargetKeyboard alloc] init];
[k setVk: [keyInput vk]];
[k setDescr: [keyInput descr]];
@@
-47,7
+47,7
@@
case 2:
{
TargetConfig* c = [[TargetConfig alloc] init];
case 2:
{
TargetConfig* c = [[TargetConfig alloc] init];
- [c setConfig: [
[configsController configs] objectAtIndex:
[configPopup indexOfSelectedItem]]];
+ [c setConfig: [
configsController configs][
[configPopup indexOfSelectedItem]]];
return c;
}
case 3: {
return c;
}
case 3: {
@@
-185,7
+185,7
@@
NSArray* configs = [configsController configs];
[configPopup removeAllItems];
for(int i=0; i<[configs count]; i++) {
NSArray* configs = [configsController configs];
[configPopup removeAllItems];
for(int i=0; i<[configs count]; i++) {
- [configPopup addItemWithTitle: [
[configs objectAtIndex:
i]name]];
+ [configPopup addItemWithTitle: [
configs[
i]name]];
}
if(preserve)
[configPopup selectItemAtIndex:initialIndex];
}
if(preserve)
[configPopup selectItemAtIndex:initialIndex];