changeset 2992:2a4eb326eb1d

fixed crash of the new GUI when right clicking on the StatusIcon
author Cristi Magherusan <majeru@atheme.org>
date Mon, 02 Mar 2009 03:53:57 +0200
parents 2cdf6400594c
children e504acd50ecc
files src/statusicon/si_ui.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/statusicon/si_ui.c	Tue Feb 10 23:56:41 2009 +0100
+++ b/src/statusicon/si_ui.c	Mon Mar 02 03:53:57 2009 +0200
@@ -102,7 +102,8 @@
           break;
         case SI_CFG_RCLICK_MENU_AUD:
         default:
-          audacious_menu_main_show( event->x_root , event->y_root , 3 , event->time );
+          if(audacious_menu_main_show != NULL)
+              audacious_menu_main_show ( event->x_root , event->y_root , 3 , event->time );
           break;
       }
       break;