[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [sink/feature/mailcontact] common/domain: Requesting a property that is not available is not an erro
From:       Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date:       2016-10-31 17:46:33
Message-ID: E1c1GfJ-0004dc-UW () code ! kde ! org
[Download RAW message or body]

Git commit eed2f992300a82debdeda3ece5acf5c05954bbf7 by Christian Mollekopf.
Committed on 28/10/2016 at 13:21.
Pushed by cmollekopf into branch 'feature/mailcontact'.

Requesting a property that is not available is not an error.

M  +1    -1    common/domain/applicationdomaintype.cpp

http://commits.kde.org/akonadi-next/eed2f992300a82debdeda3ece5acf5c05954bbf7

diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applic=
ationdomaintype.cpp
index 3109966..b30eb36 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -86,7 +86,7 @@ QVariant ApplicationDomainType::getProperty(const QByteAr=
ray &key) const
 {
     Q_ASSERT(mAdaptor);
     if (!mAdaptor->availableProperties().contains(key)) {
-        SinkWarning() << "No such property available " << key;
+        return QVariant();
     }
     return mAdaptor->getProperty(key);
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic