Permalink
Browse files

removed currentList

  • Loading branch information...
1 parent 3c2cb14 commit e3392536fbea25e9355297ff55070af2261e41b4 Greg Allen committed Mar 12, 2010
Showing with 8 additions and 6 deletions.
  1. +8 −6 MilkMaidWindowController.m
View
@@ -321,9 +321,10 @@ -(void)addTask:(NSString*)task {
NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithObjects:[NSArray arrayWithObjects:timeline, task, @"1", nil]
forKeys:[NSArray arrayWithObjects:@"timeline", @"name", @"parse", nil]];
- //if (currentList && ![[currentList listType] isEqualToString:@"search"]) {
- // [params setObject:[currentList title] forKey:@"list_id"];
- //}
+ RTMList *currentList = [self getCurrentList];
+ if (currentList.addParams) {
+ [params addEntriesFromDictionary:currentList.addParams];
+ }
[rtmController dataByCallingMethod:@"rtm.tasks.add" andParameters:params withToken:YES];
[self getTasks];
@@ -340,9 +341,10 @@ -(void)addTasks:(NSArray*)newTasksArray {
NSString *taskName = [NSString stringWithFormat:@"%@ %@ %@", t, globalTaskAttributes, globalAttributes];
NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithObjects:[NSArray arrayWithObjects:timeline, taskName, @"1", nil]
forKeys:[NSArray arrayWithObjects:@"timeline", @"name", @"parse", nil]];
- //if (currentList) {
- // [params setObject:[currentList objectForKey:@"id"] forKey:@"list_id"];
- //}
+ RTMList *currentList = [self getCurrentList];
+ if (currentList.addParams) {
+ [params addEntriesFromDictionary:currentList.addParams];
+ }
[rtmController dataByCallingMethod:@"rtm.tasks.add" andParameters:params withToken:YES];
}

0 comments on commit e339253

Please sign in to comment.