Handle case when no apps are present at all (rescan after eject, say), and hit up
authorskeezix <skeezix@flotsam-vm.(none)>
Wed, 17 Mar 2010 19:30:30 +0000 (15:30 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Wed, 17 Mar 2010 19:30:30 +0000 (15:30 -0400)
minimenu/mmui.c

index aa7cf76..a7a7e42 100644 (file)
@@ -1068,6 +1068,10 @@ void ui_push_right ( unsigned char forcecoil ) {
 void ui_push_up ( void ) {
   unsigned char col_max = pnd_conf_get_as_int ( g_conf, MMENU_DISP_COLMAX );
 
+  if ( ! ui_selected ) {
+    return;
+  }
+
   // what row we in?
   unsigned int row = ui_determine_row ( ui_selected );