aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-12 09:14:39 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-12 09:14:39 +0900
commit5773165cd9e5546016dc3cf3bd9538692eb6c19d (patch)
tree6f7049e654d1575ac70563dc2875c625951dc0aa /lib
parentb3559aa9ac082abe96da2bae084d0645b93fb658 (diff)
downloadlibquotient-5773165cd9e5546016dc3cf3bd9538692eb6c19d.tar.gz
libquotient-5773165cd9e5546016dc3cf3bd9538692eb6c19d.zip
Fix building with older Qt versions
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 29c044f1..48d3a532 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -723,7 +723,7 @@ User* Connection::user(const QString& userId)
{
if (userId.isEmpty())
return nullptr;
- if (userId.front() != '@' || !userId.contains(':'))
+ if (!userId.startsWith('@') || !userId.contains(':'))
{
qCCritical(MAIN) << "Malformed userId:" << userId;
return nullptr;