(iOS) runActionSheet - make it more robust

This commit is contained in:
Twinaphex 2014-07-25 19:35:09 +02:00
parent 2ccee86694
commit a094aaf302

View File

@ -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)