@@ -32,9 +32,9 @@ PropertiesServer::PropertiesServer(QObject *parent)
35−QDBusVariant PropertiesServer::Get(const QString &interface, const QString &property)
35+QDBusVariant PropertiesServer::Get(const QString &interface, const QString &property) const
37− if (m_properties[interface].contains(property)) {
37+ if (m_properties.contains(interface) && m_properties[interface].contains(property)) {
38 return QDBusVariant(m_properties[interface][property]);
38 return QDBusVariant(m_properties[interface][property]);
40 sendErrorReply(QDBusError::InvalidArgs, "Bad interface or property");
40 sendErrorReply(QDBusError::InvalidArgs, "Bad interface or property");
@@ -42,7 +42,7 @@ QDBusVariant PropertiesServer::Get(const QString &interface, const QString &prop
45−QVariantMap PropertiesServer::GetAll(const QString &interface)
45+QVariantMap PropertiesServer::GetAll(const QString &interface) const
47 if (m_properties.contains(interface)) {
47 if (m_properties.contains(interface)) {
48 return m_properties[interface];
48 return m_properties[interface];