From 5773165cd9e5546016dc3cf3bd9538692eb6c19d Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 12 Aug 2018 09:14:39 +0900 Subject: Fix building with older Qt versions --- lib/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3