diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-06 23:44:59 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-06 23:44:59 +0000 |
commit | 3fccc9c751cded1360aa22796ed3c6d700fd04c1 (patch) | |
tree | 7833f05d9540c9ad9ffd09c7dc181ee473484298 /Source/SPTableInfo.m | |
parent | 71524d822dd449c131f6e09b2a0be0c3c0101eb1 (diff) | |
parent | 263681ef03fd33d516ca8e84db12d1c54570679f (diff) | |
download | sequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.tar.gz sequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.tar.bz2 sequelpro-3fccc9c751cded1360aa22796ed3c6d700fd04c1.zip |
Bring outlineview branch up to date with trunk (r2967:2974).
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r-- | Source/SPTableInfo.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m index 3dc64b01..af5d4474 100644 --- a/Source/SPTableInfo.m +++ b/Source/SPTableInfo.m @@ -85,6 +85,21 @@ [super dealloc]; } +/** + * Remove an activity directly from the list since an update will be performer in the background + * to signilize the user that an activity was cancelled at once + */ +- (void)removeActivity:(NSInteger)pid +{ + for(id cmd in activities) { + if([[cmd objectForKey:@"pid"] integerValue] == pid) { + [activities removeObject:cmd]; + break; + } + } + [activitiesTable reloadData]; +} + - (void)updateActivities { NSMutableArray *acts = [NSMutableArray array]; |