aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-24 21:22:12 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-24 21:22:12 +0900
commit68d7a22c25014f09c0346cf1a2501b4fd1fd882a (patch)
tree2b17cd4b9b5c51e9a490b07bc37d67c8df37ff0d
parent36ca96ed4ef0e4f63e6925ea8d6e8b7925473fea (diff)
downloadlibquotient-68d7a22c25014f09c0346cf1a2501b4fd1fd882a.tar.gz
libquotient-68d7a22c25014f09c0346cf1a2501b4fd1fd882a.zip
Typo fixes for the previous commit
Requires deleting the cache :(
-rw-r--r--avatar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/avatar.cpp b/avatar.cpp
index d3e9cd29..44cad4e5 100644
--- a/avatar.cpp
+++ b/avatar.cpp
@@ -115,7 +115,7 @@ bool Avatar::updateUrl(const QUrl& newUrl)
// FIXME: Make it a library-wide constant and maybe even make the URL checker
// a Connection(?) method.
- if (newUrl.scheme() != "mxc://" || newUrl.path().count('/') != 2)
+ if (newUrl.scheme() != "mxc" || newUrl.path().count('/') != 1)
{
qCWarning(MAIN) << "Malformed avatar URL:" << newUrl.toDisplayString();
return false;