diff --git a/src/plasma/private/timetracker.cpp b/src/plasma/private/timetracker.cpp index bb809a597..cdfe94bdd 100644 --- a/src/plasma/private/timetracker.cpp +++ b/src/plasma/private/timetracker.cpp @@ -127,11 +127,15 @@ void TimeTracker::propertyChanged() QMetaProperty prop = mo->property(i); if (prop.notifySignalIndex() == senderSignalIndex()) { QString val; - QVariant var = prop.read(parent()); - if(var.canConvert()) { - val = var.toString(); - } else { - val = QString("").arg(var.typeName()); + if (prop.type() < QVariant::UserType) { + QVariant var = prop.read(parent()); + if(var.canConvert()) { + val = var.toString(); + } + } + + if (val.isEmpty()) { + val = QString("").arg(prop.typeName()); } m_history.events.append(TimeEvent { QDateTime::currentDateTime(), QString("property %1 changed to %2").arg(prop.name()).arg(val)}); break;