From 5d197dec9dc8f5c8ef4acd72555c32108404c4ae Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 27 Jul 2017 15:44:32 -0600 Subject: Only print modified properties if we have any. --- common/domain/applicationdomaintype.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 3718f77..2050fac 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -34,7 +34,13 @@ QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDom QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::ApplicationDomainType &type) { d << "ApplicationDomainType(\n"; - auto properties = type.mAdaptor->availableProperties(); + auto properties = [&] { + if (!type.changedProperties().isEmpty()) { + return type.changedProperties(); + } else { + return type.mAdaptor->availableProperties(); + } + }(); std::sort(properties.begin(), properties.end()); d << " " << "Id: " << "\t" << type.identifier() << "\n"; d << " " << "Resource: " << "\t" << type.resourceInstanceIdentifier() << "\n"; -- cgit v1.2.3