Merge pull request #1323 from jeapostrophe/master

Fix off-by-1 dir in iOS browser
This commit is contained in:
Twinaphex 2015-01-07 15:19:40 +01:00
commit a4b92ca74c

View File

@ -425,8 +425,11 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
self.setting->change_handler ) {
self.setting->action_toggle( self.setting, MENU_ACTION_RIGHT );
}
path = [BOXSTRING(self.setting->value.string) stringByDeletingLastPathComponent];
path = BOXSTRING(self.setting->value.string);
if ( self.setting->type == ST_PATH ) {
path = [path stringByDeletingLastPathComponent];
}
list = [[RADirectoryList alloc] initWithPath:path extensions:self.setting->values action:
^(RADirectoryList* list, RADirectoryItem* item)
{