From e125fa2afa789bc3b6abd44276efd97a879af03c Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 13 Dec 2010 10:54:30 +0000 Subject: [PATCH] Closes #78 [iPhone] Cancel download confirmation --- iphone/Maps/Settings/CountriesViewController.mm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/iphone/Maps/Settings/CountriesViewController.mm b/iphone/Maps/Settings/CountriesViewController.mm index 671d706294..f4efaaf67d 100644 --- a/iphone/Maps/Settings/CountriesViewController.mm +++ b/iphone/Maps/Settings/CountriesViewController.mm @@ -320,6 +320,17 @@ mapinfo::TIndex g_clickedIndex; } break; case mapinfo::EDownloading: + { // display confirmation popup + UIActionSheet * popupQuery = [[UIActionSheet alloc] + initWithTitle: countryName + delegate: self + cancelButtonTitle: @"Do Nothing" + destructiveButtonTitle: @"Cancel Download" + otherButtonTitles: nil]; + [popupQuery showFromRect: [cell frame] inView: tableView animated: YES]; + [popupQuery release]; + } + break; case mapinfo::EInQueue: // cancel download g_pStorage->DeleteCountry(g_clickedIndex);