diff options
Diffstat (limited to 'common/bufferadaptor.h')
-rw-r--r-- | common/bufferadaptor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/bufferadaptor.h b/common/bufferadaptor.h index 2a40d18..8787d39 100644 --- a/common/bufferadaptor.h +++ b/common/bufferadaptor.h | |||
@@ -78,6 +78,10 @@ public: | |||
78 | 78 | ||
79 | virtual QVariant getProperty(const QByteArray &key) const | 79 | virtual QVariant getProperty(const QByteArray &key) const |
80 | { | 80 | { |
81 | if (!mValues.contains(key)) { | ||
82 | qWarning() << "Tried to read value that is not avialable; Did you forget to call Query::request?"; | ||
83 | return QVariant{}; | ||
84 | } | ||
81 | return mValues.value(key); | 85 | return mValues.value(key); |
82 | } | 86 | } |
83 | virtual void setProperty(const QByteArray &key, const QVariant &value) | 87 | virtual void setProperty(const QByteArray &key, const QVariant &value) |