From a869ba903c3d6910ecd6eeafdac1e190eda53f84 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 12 Mar 2012 20:03:13 +0300 Subject: [PATCH] [ios] Fixed crash if user quickly presses downloader or search button on startup --- iphone/Maps/Classes/MapViewController.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index aff60e4b74..a70476b437 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -106,7 +106,9 @@ Framework * m_framework = NULL; - (void)onShowDownloaderTimer:(NSTimer *)timer { - [self OnSettingsClicked:nil]; + // Only display downloader if no more modal controllers are already displayed + if (self.modalViewController == nil) + [self OnSettingsClicked:nil]; [timer invalidate]; }