Revision 29cc4957 Classes/StorageObjectViewController.m
b/Classes/StorageObjectViewController.m | ||
---|---|---|
660 | 660 |
- (void)deleteObjectRow { |
661 | 661 |
[self.folder.objects removeObjectForKey:self.object.name]; |
662 | 662 |
[self.folderViewController.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:selectedIndexPath] withRowAnimation:UITableViewRowAnimationLeft]; |
663 |
self.folderViewController.refreshButton.enabled = YES; |
|
663 | 664 |
} |
664 | 665 |
|
665 | 666 |
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { |
... | ... | |
672 | 673 |
activityIndicatorView = [[ActivityIndicatorView alloc] initWithFrame:[ActivityIndicatorView frameForText:activityMessage] text:activityMessage]; |
673 | 674 |
[activityIndicatorView addToView:self.view]; |
674 | 675 |
|
675 |
|
|
676 |
self.folderViewController.refreshButton.enabled = NO; |
|
676 | 677 |
[[self.account.manager deleteObject:self.container object:self.object] |
677 | 678 |
success:^(OpenStackRequest *request) { |
678 | 679 |
[activityIndicatorView removeFromSuperview]; |
... | ... | |
682 | 683 |
if (account.shared) |
683 | 684 |
self.folderViewController.needsRefreshing = YES; |
684 | 685 |
} else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { |
686 |
self.folderViewController.selectedObjectViewController = nil; |
|
685 | 687 |
if (!account.shared) |
686 | 688 |
[self.folderViewController setDetailViewController]; |
687 | 689 |
else |
Also available in: Unified diff