forked from organicmaps/organicmaps
[ios] fix: bug when the same new language can be added multiple times
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
parent
d70ad8b894
commit
5934e3a772
1 changed files with 1 additions and 3 deletions
|
@ -1105,9 +1105,7 @@ void registerCellsForTableView(std::vector<MWMEditorCellID> const & cells, UITab
|
|||
else if ([segue.identifier isEqualToString:kAdditionalNamesEditorSegue])
|
||||
{
|
||||
MWMEditorAdditionalNamesTableViewController * dvc = segue.destinationViewController;
|
||||
[dvc configWithDelegate:self
|
||||
name:m_mapObject.GetNameMultilang()
|
||||
additionalSkipLanguageCodes:extractLanguageCodes(m_mapObject.GetNamesDataSource().names)];
|
||||
[dvc configWithDelegate:self name:m_mapObject.GetNameMultilang() additionalSkipLanguageCodes:m_newAdditionalLanguages];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue