diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-07-03 23:18:14 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-07-03 23:18:14 +0000 |
commit | 76855f0039d1659d992b7b7c705c45a6c4f4dead (patch) | |
tree | 0032e9dd0f2714812afd1e95587fc3931741b933 | |
parent | 4aeab55f67be12010250db884ef455340d0da341 (diff) | |
download | rockbox-76855f0039d1659d992b7b7c705c45a6c4f4dead.tar.gz rockbox-76855f0039d1659d992b7b7c705c45a6c4f4dead.zip |
File/Dir properties should at least print an error message when something goes wrong
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13780 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/properties.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index f58a412056..1726e01c34 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -308,16 +308,16 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
308 | return PLUGIN_OK; | 308 | return PLUGIN_OK; |
309 | } | 309 | } |
310 | 310 | ||
311 | /* get the info */ | 311 | /* get the info depending on its_a_dir */ |
312 | if(its_a_dir) | 312 | if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file))) |
313 | { | 313 | { |
314 | if(!dir_properties((char*)file)) | 314 | /* something went wrong */ |
315 | return PLUGIN_OK; | 315 | rb->lcd_clear_display(); |
316 | } | 316 | rb->lcd_puts(0,0,"Failed to gather information"); |
317 | else | 317 | rb->lcd_update(); |
318 | { | 318 | |
319 | if(!file_properties((char*)file)) | 319 | rb->action_userabort(TIMEOUT_BLOCK); |
320 | return PLUGIN_OK; | 320 | return PLUGIN_OK; |
321 | } | 321 | } |
322 | 322 | ||
323 | /* prepare the list for the user */ | 323 | /* prepare the list for the user */ |