From a094aaf3028f9476acf1c74d501bb5406bf6754d Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 25 Jul 2014 19:35:09 +0200 Subject: [PATCH] (iOS) runActionSheet - make it more robust --- apple/iOS/menu.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apple/iOS/menu.m b/apple/iOS/menu.m index c406727c7c..82aa928a21 100644 --- a/apple/iOS/menu.m +++ b/apple/iOS/menu.m @@ -237,10 +237,13 @@ static void RunActionSheet(const char* title, const struct string_list* items, U [self attachDefaultingGestureTo:result]; - result.textLabel.text = BOXSTRING(self.setting->short_description); + result.textLabel.text = BOXSTRING("N/A"); if (self.setting) { + if (self.setting->short_description) + result.textLabel.text = BOXSTRING(self.setting->short_description); + result.detailTextLabel.text = BOXSTRING(setting_data_get_string_representation(self.setting, buffer, sizeof(buffer))); if (self.setting->type == ST_PATH)