diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-04-25 17:23:52 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-04-25 17:23:52 +0300 |
commit | 831beaf5c4d1d942b62a8b31b02917cdf90118b3 (patch) | |
tree | b619da2c0a64d049aaa7894a842f360671b118fc /iphone/Maps/Classes/Editor | |
parent | 0c69a88519ab3280cac82b0f0a2332752a1c24bb (diff) |
[ios] Fixed time editor crash.
Diffstat (limited to 'iphone/Maps/Classes/Editor')
-rw-r--r-- | iphone/Maps/Classes/Editor/OpeningHours/MWMOpeningHoursSection.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/Editor/OpeningHours/MWMOpeningHoursSection.mm b/iphone/Maps/Classes/Editor/OpeningHours/MWMOpeningHoursSection.mm index 388126887f..5377325447 100644 --- a/iphone/Maps/Classes/Editor/OpeningHours/MWMOpeningHoursSection.mm +++ b/iphone/Maps/Classes/Editor/OpeningHours/MWMOpeningHoursSection.mm @@ -203,7 +203,6 @@ using namespace osmoh; { NSUInteger const closedTimesCountBeforeUpdate = [self closedTimesCount]; self.skipStoreCachedData = [self isRowSelected:row]; - self.selectedRow = nil; if (closedTimesCountBeforeUpdate == [self closedTimesCount]) { UITableView * tableView = self.delegate.tableView; @@ -213,6 +212,7 @@ using namespace osmoh; timeTable.RemoveExcludeTime([self closedTimeIndex:row]); timeTable.Commit(); + self.selectedRow = nil; [self deleteRow:row]; [tableView endUpdates]; } |