mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-06-01 10:41:33 +00:00
fix crash when entering edit mode from import mode
This commit is contained in:
parent
f180642b33
commit
c390e48140
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue
Block a user