summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-28 18:28:38 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-28 18:28:38 +0200
commitb7ea741f2b0eaf3990638fbffe203380098d8587 (patch)
tree958fa20e282960bf725a688c63a92aadc03e87cd /unity-shared
parenta64d44044cb7d5e172eed635986b8f94043a7874 (diff)
IconTexture: better check for URI scheme
(bzr r3844.10.14)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/IconTexture.cpp2
1 files changed, 1 insertions, 1 deletions
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));