Don't throw UnknownPropertyException for givenname/sn from KDE backends
Open TODO to actually obtain values for them, instead of returning an empty
css:🫘:Optional representing "no value available."
Change-Id: Iceb286e9873216f7bc36bd88b09ac03bd3a2c895
This commit is contained in:
@@ -178,6 +178,9 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName)
|
||||
enabled_
|
||||
? kde4access::getValue(PropertyName)
|
||||
: css::beans::Optional< css::uno::Any >());
|
||||
} else if (PropertyName == "givenname" || PropertyName == "sn") {
|
||||
return css::uno::makeAny(css::beans::Optional< css::uno::Any >());
|
||||
//TODO: obtain values from KDE?
|
||||
}
|
||||
throw css::beans::UnknownPropertyException(
|
||||
PropertyName, static_cast< cppu::OWeakObject * >(this));
|
||||
|
@@ -178,6 +178,9 @@ css::uno::Any Service::getPropertyValue(OUString const & PropertyName)
|
||||
enabled_
|
||||
? kdeaccess::getValue(PropertyName)
|
||||
: css::beans::Optional< css::uno::Any >());
|
||||
} else if (PropertyName == "givenname" || PropertyName == "sn") {
|
||||
return css::uno::makeAny(css::beans::Optional< css::uno::Any >());
|
||||
//TODO: obtain values from KDE?
|
||||
}
|
||||
throw css::beans::UnknownPropertyException(
|
||||
PropertyName, static_cast< cppu::OWeakObject * >(this));
|
||||
|
Reference in New Issue
Block a user