[ios] Fixed duplicate migration controller open on fast scroll.

This commit is contained in:
Ilya Grechuhin 2016-02-24 14:42:44 +03:00 committed by Sergey Yershov
parent df92e2c6e9
commit 8b326b45f8

View file

@ -598,6 +598,8 @@ NSString * const kEditorSegue = @"Map2EditorSegue";
- (void)processViewportCountryEvent:(TCountryId const &)countryId
{
if (![self.navigationController.topViewController isEqual:self])
return;
if (countryId != kInvalidCountryId && platform::migrate::NeedMigrate())
[self performSegueWithIdentifier:kMigrationSegue sender:self];
else