diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-07-09 17:13:49 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-07-09 17:13:49 +0100 |
commit | 134f9e2bd79c85ae3aee0cf3677befdf68fa9d45 (patch) | |
tree | 9b3c061ddb815765cb740e883651cd0f461bed5d /src/player-item.vala | |
parent | a7cd627d578066b3383629dee572aa6385a33281 (diff) | |
download | ayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.tar.gz ayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.tar.bz2 ayatana-indicator-sound-134f9e2bd79c85ae3aee0cf3677befdf68fa9d45.zip |
more arturl fixes
Diffstat (limited to 'src/player-item.vala')
-rw-r--r-- | src/player-item.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/player-item.vala b/src/player-item.vala index 4f95b0c..3e10b7b 100644 --- a/src/player-item.vala +++ b/src/player-item.vala @@ -58,7 +58,12 @@ public class PlayerItem : Dbusmenu.Menuitem string update = v.get_string().strip(); debug("with value : %s", update); if(property.contains("arturl")){ - update = Filename.from_uri(update.strip()); + try{ + update = Filename.from_uri(update.strip()); + } + catch(ConvertError e){ + warning("Problem converting URI %s to file path", update); + } } this.property_set(property, update); } |