diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-06 08:58:38 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-06 08:58:38 +0000 |
commit | dbbcc4144a7abef479ae9982563ed3a1cbdb725c (patch) | |
tree | dada74139078c8eaf3f33875993a73b4317b5e4d /Source/SPTableInfo.m | |
parent | 3de284fa904c295f306ec047fc29289399424836 (diff) | |
download | sequelpro-dbbcc4144a7abef479ae9982563ed3a1cbdb725c.tar.gz sequelpro-dbbcc4144a7abef479ae9982563ed3a1cbdb725c.tar.bz2 sequelpro-dbbcc4144a7abef479ae9982563ed3a1cbdb725c.zip |
• finished implementation of SPChooseMenuItemDialog
• simplified bundle command handling and handling for bundle commands which have the same key equivalent to be able to group similar bundle commands
• minor code improvements
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]; |