mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-08-15 09:27:29 +00:00
fix crash when entering edit mode from import mode
This commit is contained in:
@@ -136,7 +136,9 @@
|
||||
[self loadDirectoryContents];
|
||||
self.tableView.tableHeaderView = nil;
|
||||
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
|
||||
if (editing) {
|
||||
if (importing) {
|
||||
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationFade];
|
||||
} else if (editing) {
|
||||
[self.tableView insertSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationFade];
|
||||
} else {
|
||||
[self.tableView deleteSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationFade];
|
||||
|
Reference in New Issue
Block a user