diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-28 15:21:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-28 15:21:25 +0200 |
commit | eed2f992300a82debdeda3ece5acf5c05954bbf7 (patch) | |
tree | 5e00943a6bc40e65dfdac675bf12fc9ed74c6bd2 /common/domain/applicationdomaintype.cpp | |
parent | f4b6a6e2e9a2bc170249cb309bfb4df66f98bb14 (diff) | |
download | sink-eed2f992300a82debdeda3ece5acf5c05954bbf7.tar.gz sink-eed2f992300a82debdeda3ece5acf5c05954bbf7.zip |
Requesting a property that is not available is not an error.
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 3109966..b30eb36 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -86,7 +86,7 @@ QVariant ApplicationDomainType::getProperty(const QByteArray &key) const | |||
86 | { | 86 | { |
87 | Q_ASSERT(mAdaptor); | 87 | Q_ASSERT(mAdaptor); |
88 | if (!mAdaptor->availableProperties().contains(key)) { | 88 | if (!mAdaptor->availableProperties().contains(key)) { |
89 | SinkWarning() << "No such property available " << key; | 89 | return QVariant(); |
90 | } | 90 | } |
91 | return mAdaptor->getProperty(key); | 91 | return mAdaptor->getProperty(key); |
92 | } | 92 | } |