banshee r4500 - in trunk/banshee: . src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea
- From: blorentz svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4500 - in trunk/banshee: . src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea
- Date: Tue, 9 Sep 2008 18:18:58 +0000 (UTC)
Author: blorentz
Date: Tue Sep 9 18:18:58 2008
New Revision: 4500
URL: http://svn.gnome.org/viewvc/banshee?rev=4500&view=rev
Log:
2008-09-09 Bertrand Lorentz <bertrand lorentz gmail com>
* src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs:
Fix a crash after executing "banshee-1 --stop" (BGO #550777).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
Modified: trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs Tue Sep 9 18:18:58 2008
@@ -276,10 +276,12 @@
{
if (rating_menu_item.Visible) {
TrackInfo track = ServiceManager.PlayerEngine.CurrentTrack;
- if (track is DatabaseTrackInfo) {
- (track as DatabaseTrackInfo).Refresh ();
+ if (track != null) {
+ if (track is DatabaseTrackInfo) {
+ (track as DatabaseTrackInfo).Refresh ();
+ }
+ rating_menu_item.Reset (track.Rating);
}
- rating_menu_item.Reset (track.Rating);
}
menu.Popup (null, null, notif_area.PositionMenu, 3, Gtk.Global.CurrentEventTime);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]