From 64ead2414c7e40155eb9241848b1837beb84ae7c Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Thu, 3 Mar 2011 17:13:15 +0000 Subject: final playlist delete tweak --- src/playlists-menu-item.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/playlists-menu-item.vala b/src/playlists-menu-item.vala index bc39129..f4d7233 100644 --- a/src/playlists-menu-item.vala +++ b/src/playlists-menu-item.vala @@ -69,7 +69,10 @@ public class PlaylistsMenuitem : PlayerItem } } if (within == false){ - this.root_item.child_delete (item); + if (this.root_item.property_get (MENUITEM_PATH) == item.property_get (MENUITEM_PATH)){ + this.root_item.property_set (MENUITEM_PROP_LABEL, "Choose Playlist"); + } + this.root_item.child_delete (item); } } } -- cgit v1.2.3