From b9af56291f5bfc898ce232b4ebf5065554484962 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 12 May 2017 14:25:35 +0200 Subject: We run into this when trying to index a property that is not set. i.e. in tests. --- common/bufferadaptor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/bufferadaptor.h b/common/bufferadaptor.h index fd4809b..f393388 100644 --- a/common/bufferadaptor.h +++ b/common/bufferadaptor.h @@ -66,8 +66,7 @@ public: virtual QVariant getProperty(const QByteArray &key) const { if (!mValues.contains(key)) { - qWarning() << "Tried to read value that is not available; Did you forget to call Query::request? Property: " << key; - return QVariant{}; + return {}; } return mValues.value(key); } -- cgit v1.2.3