summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 24034fe45b..90ae159418 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -642,8 +642,7 @@ static bool ask_resume(bool ask_once)
642 break; 642 break;
643#endif 643#endif
644 default: 644 default:
645 default_event_handler(button); 645 if(default_event_handler(button) || (button & BUTTON_REL))
646 if (button & BUTTON_REL)
647 stop = true; 646 stop = true;
648 break; 647 break;
649 } 648 }
@@ -836,8 +835,8 @@ static bool dirbrowse(const char *root, const int *dirfilter)
836 break; 835 break;
837 836
838 default: 837 default:
839 default_event_handler(button); 838 if(default_event_handler(button) ||
840 if (button & BUTTON_REL) 839 (button & BUTTON_REL))
841 stop = true; 840 stop = true;
842 break; 841 break;
843 } 842 }