aboutsummaryrefslogtreecommitdiff
path: root/src/metadata-menu-item.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/metadata-menu-item.vala')
-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 be078bd..82926b1 100644
--- a/src/metadata-menu-item.vala
+++ b/src/metadata-menu-item.vala
@@ -26,7 +26,7 @@ public class MetadataMenuitem : Dbusmenu.Menuitem
public static string sanitize_image_path(string path)
{
string result = path.strip();
- if(result.contains("file:///")){
+ if(result.has_prefix("file:///")){
result = result.slice(7, result.len());
}
debug("Sanitize image path - result = %s", result);