aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2012-03-13 15:36:35 +0000
committerConor Curran <conor.curran@canonical.com>2012-03-13 15:36:35 +0000
commitc759f4e9b00132c499241448d8c4f8eb72297d17 (patch)
tree29c23b3f3d073435979e782726bcbf1a4ed659e2
parent36211076afd9eabcfd69d8bfce3d8e0ca82e3b38 (diff)
downloadayatana-indicator-sound-c759f4e9b00132c499241448d8c4f8eb72297d17.tar.gz
ayatana-indicator-sound-c759f4e9b00132c499241448d8c4f8eb72297d17.tar.bz2
ayatana-indicator-sound-c759f4e9b00132c499241448d8c4f8eb72297d17.zip
Makes sure to accommodate for null player titles as supplied by the mpris interface of the player, redundant code spotted by Coverity
-rw-r--r--src/metadata-menu-item.vala2
1 files changed, 1 insertions, 1 deletions
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);