diff options
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r-- | apps/gui/gwps.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 9b6d6b5558..bac5032440 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c | |||
@@ -136,7 +136,7 @@ long gui_wps_show(void) | |||
136 | bool update_track = false; | 136 | bool update_track = false; |
137 | int i; | 137 | int i; |
138 | long last_left = 0, last_right = 0; | 138 | long last_left = 0, last_right = 0; |
139 | 139 | bool isremote = false; | |
140 | wps_state_init(); | 140 | wps_state_init(); |
141 | 141 | ||
142 | #ifdef HAVE_LCD_CHARCELLS | 142 | #ifdef HAVE_LCD_CHARCELLS |
@@ -234,7 +234,10 @@ long gui_wps_show(void) | |||
234 | #else | 234 | #else |
235 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,HZ/5); | 235 | button = get_action(CONTEXT_WPS|ALLOW_SOFTLOCK,HZ/5); |
236 | #endif | 236 | #endif |
237 | 237 | #if NB_SCREENS > 1 | |
238 | isremote = get_action_statuscode(NULL)&ACTION_REMOTE; | ||
239 | #endif | ||
240 | |||
238 | /* Exit if audio has stopped playing. This can happen if using the | 241 | /* Exit if audio has stopped playing. This can happen if using the |
239 | sleep timer with the charger plugged or if starting a recording | 242 | sleep timer with the charger plugged or if starting a recording |
240 | from F1 */ | 243 | from F1 */ |
@@ -292,13 +295,23 @@ long gui_wps_show(void) | |||
292 | break; | 295 | break; |
293 | 296 | ||
294 | case ACTION_WPS_BROWSE: | 297 | case ACTION_WPS_BROWSE: |
298 | if (gui_wps[isremote?1:0].data->current_mode > -1) | ||
299 | { | ||
300 | /* will get set to 0 eventually again in wps_parser.c */ | ||
301 | gui_wps[isremote?1:0].data->current_mode = | ||
302 | gui_wps[isremote?1:0].data->current_mode+1; | ||
303 | restore = true; | ||
304 | } | ||
305 | else | ||
306 | { | ||
295 | #ifdef HAVE_LCD_CHARCELLS | 307 | #ifdef HAVE_LCD_CHARCELLS |
296 | status_set_record(false); | 308 | status_set_record(false); |
297 | status_set_audio(false); | 309 | status_set_audio(false); |
298 | #endif | 310 | #endif |
299 | FOR_NB_SCREENS(i) | 311 | FOR_NB_SCREENS(i) |
300 | gui_wps[i].display->stop_scroll(); | 312 | gui_wps[i].display->stop_scroll(); |
301 | return GO_TO_PREVIOUS_BROWSER; | 313 | return GO_TO_PREVIOUS_BROWSER; |
314 | } | ||
302 | break; | 315 | break; |
303 | 316 | ||
304 | /* play/pause */ | 317 | /* play/pause */ |