diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index d468c0a545..4f748204df 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -138,7 +138,7 @@ static bool clipboard_clip(struct clipboard *clip, const char *path, | |||
138 | static int bookmark_load_menu_wrapper(void) | 138 | static int bookmark_load_menu_wrapper(void) |
139 | { | 139 | { |
140 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* get rid of parent activity */ | 140 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* get rid of parent activity */ |
141 | pop_current_activity_without_refresh(); /* when called from ctxt menu */ | 141 | pop_current_activity_without_refresh(); /* when called from ctxt menu */ |
142 | 142 | ||
143 | return bookmark_load_menu(); | 143 | return bookmark_load_menu(); |
144 | } | 144 | } |
@@ -689,7 +689,7 @@ MENUITEM_FUNCTION(view_cue_item, 0, ID2P(LANG_BROWSE_CUESHEET), | |||
689 | static int browse_id3_wrapper(void) | 689 | static int browse_id3_wrapper(void) |
690 | { | 690 | { |
691 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* get rid of parent activity */ | 691 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* get rid of parent activity */ |
692 | pop_current_activity_without_refresh(); /* when called from ctxt menu */ | 692 | pop_current_activity_without_refresh(); /* when called from ctxt menu */ |
693 | 693 | ||
694 | if (browse_id3(audio_current_track(), | 694 | if (browse_id3(audio_current_track(), |
695 | playlist_get_display_index(), | 695 | playlist_get_display_index(), |
@@ -806,6 +806,10 @@ static bool onplay_load_plugin(void *param) | |||
806 | if (!prepare_database_sel(param)) | 806 | if (!prepare_database_sel(param)) |
807 | return false; | 807 | return false; |
808 | #endif | 808 | #endif |
809 | |||
810 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* get rid of parent activity */ | ||
811 | pop_current_activity_without_refresh(); /* when called from ctxt menu */ | ||
812 | |||
809 | int ret = filetype_load_plugin((const char*)param, selected_file.path); | 813 | int ret = filetype_load_plugin((const char*)param, selected_file.path); |
810 | if (ret == PLUGIN_USB_CONNECTED) | 814 | if (ret == PLUGIN_USB_CONNECTED) |
811 | onplay_result = ONPLAY_RELOAD_DIR; | 815 | onplay_result = ONPLAY_RELOAD_DIR; |
@@ -1299,7 +1303,7 @@ int onplay(char* file, int attr, int from_context, bool hotkey) | |||
1299 | menu_selection = do_menu(menu, NULL, NULL, false); | 1303 | menu_selection = do_menu(menu, NULL, NULL, false); |
1300 | 1304 | ||
1301 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* Activity may have been */ | 1305 | if (get_current_activity() == ACTIVITY_CONTEXTMENU) /* Activity may have been */ |
1302 | pop_current_activity(); /* popped already by menu item */ | 1306 | pop_current_activity(); /* popped already by menu item */ |
1303 | 1307 | ||
1304 | 1308 | ||
1305 | if (menu_selection == GO_TO_WPS) | 1309 | if (menu_selection == GO_TO_WPS) |