From b7ea741f2b0eaf3990638fbffe203380098d8587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 28 Jul 2014 18:28:38 +0200 Subject: IconTexture: better check for URI scheme (bzr r3844.10.14) --- unity-shared/IconTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unity-shared') diff --git a/unity-shared/IconTexture.cpp b/unity-shared/IconTexture.cpp index a766ac31d..901228ccf 100644 --- a/unity-shared/IconTexture.cpp +++ b/unity-shared/IconTexture.cpp @@ -142,7 +142,7 @@ void IconTexture::LoadIcon() -1, _size, sigc::mem_fun(this, &IconTexture::IconLoaded)); } - else if (_icon_name.find("http://") == 0) + else if (_icon_name.find("://") != std::string::npos) { _handle = IconLoader::GetDefault().LoadFromURI(_icon_name, -1, _size, sigc::mem_fun(this, &IconTexture::IconLoaded)); -- cgit v1.2.3