From 9508ea982b8feb012a9d354a7c80005421a854bc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Oct 2013 22:38:29 +0200 Subject: fs/Path: add method IsAbsolute() --- src/QueueSave.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/QueueSave.cxx') diff --git a/src/QueueSave.cxx b/src/QueueSave.cxx index 8f22e312f..0c036d963 100644 --- a/src/QueueSave.cxx +++ b/src/QueueSave.cxx @@ -28,6 +28,7 @@ #include "TextFile.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" +#include "fs/Path.hxx" #include "Log.hxx" #include @@ -92,7 +93,7 @@ queue_load_song(TextFile &file, const char *line, queue *queue) if (g_str_has_prefix(line, SONG_BEGIN)) { const char *uri = line + sizeof(SONG_BEGIN) - 1; - if (!uri_has_scheme(uri) && !g_path_is_absolute(uri)) + if (!uri_has_scheme(uri) && !Path::IsAbsoluteUTF8(uri)) return; Error error; -- cgit v1.2.3