(Menu) Forgot some ifdefs

This commit is contained in:
Jean-André Santoni 2016-08-29 02:39:02 +02:00
parent f06e76301e
commit b293f3b980

View File

@ -2544,14 +2544,19 @@ static int action_ok_delete_entry(const char *path,
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_GET, &playlist);
if (!strcmp(playlist->conf_path, g_defaults.music_history->conf_path))
if (!strcmp(playlist->conf_path, g_defaults.content_history->conf_path))
playlist = g_defaults.content_history;
#ifdef HAVE_FFMPEG
else if (!strcmp(playlist->conf_path, g_defaults.music_history->conf_path))
playlist = g_defaults.music_history;
else if (!strcmp(playlist->conf_path, g_defaults.video_history->conf_path))
playlist = g_defaults.video_history;
#endif
#ifdef HAVE_IMAGEVIEWER
else if (!strcmp(playlist->conf_path, g_defaults.image_history->conf_path))
playlist = g_defaults.image_history;
else if (!strcmp(playlist->conf_path, g_defaults.content_history->conf_path))
playlist = g_defaults.content_history;
#endif
playlist_delete_index(playlist, rpl_entry_selection_ptr);