From c759f4e9b00132c499241448d8c4f8eb72297d17 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 13 Mar 2012 15:36:35 +0000 Subject: Makes sure to accommodate for null player titles as supplied by the mpris interface of the player, redundant code spotted by Coverity --- src/metadata-menu-item.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala index 42f9667..897a502 100644 --- a/src/metadata-menu-item.vala +++ b/src/metadata-menu-item.vala @@ -178,7 +178,7 @@ public class MetadataMenuitem : PlayerItem } } - public void alter_label (string new_title) + public void alter_label (string? new_title) { if (new_title == null) return; this.property_set (MENUITEM_PLAYER_NAME, new_title); -- cgit v1.2.3