diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index 75504cf17e..b21faf1dd8 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c | |||
@@ -4188,7 +4188,7 @@ static int context_menu(void) | |||
4188 | { | 4188 | { |
4189 | char album_name[MAX_PATH]; | 4189 | char album_name[MAX_PATH]; |
4190 | char *file_name = get_track_filename(show_tracks_while_browsing ? 0 : pf_tracks.sel); | 4190 | char *file_name = get_track_filename(show_tracks_while_browsing ? 0 : pf_tracks.sel); |
4191 | int attr; | 4191 | int attr = FILE_ATTR_AUDIO; |
4192 | 4192 | ||
4193 | enum { | 4193 | enum { |
4194 | PF_CURRENT_PLAYLIST = 0, | 4194 | PF_CURRENT_PLAYLIST = 0, |
@@ -4205,13 +4205,15 @@ static int context_menu(void) | |||
4205 | NULL, NULL, false)) { | 4205 | NULL, NULL, false)) { |
4206 | 4206 | ||
4207 | case PF_CURRENT_PLAYLIST: | 4207 | case PF_CURRENT_PLAYLIST: |
4208 | rb->onplay_show_playlist_menu(file_name, | 4208 | if (insert_whole_album && pf_tracks.count > 1) |
4209 | &pf_current_playlist_insert); | 4209 | { |
4210 | attr = ATTR_DIRECTORY; | ||
4211 | file_name = NULL; | ||
4212 | } | ||
4213 | rb->onplay_show_playlist_menu(file_name, attr, &pf_current_playlist_insert); | ||
4210 | return 0; | 4214 | return 0; |
4211 | case PF_CATALOG: | 4215 | case PF_CATALOG: |
4212 | if (!insert_whole_album) | 4216 | if (insert_whole_album) |
4213 | attr = FILE_ATTR_AUDIO; | ||
4214 | else | ||
4215 | { | 4217 | { |
4216 | /* add a leading slash so that catalog_add_to_a_playlist | 4218 | /* add a leading slash so that catalog_add_to_a_playlist |
4217 | later prefills the name when creating a new playlist */ | 4219 | later prefills the name when creating a new playlist */ |