Fix system tray tooltip

pull/18/head
kateleet 4 years ago
parent 017515d5d5
commit 725cb53e9d

@ -255,11 +255,7 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call)
KDbusToolTipStruct toolTip;
properties[QStringLiteral("ToolTip")].value<QDBusArgument>() >> toolTip;
m_tooltip = toolTip.title;
// Use ID as an alternative :)
if (m_tooltip.isEmpty() && m_title.isEmpty()) {
m_tooltip = properties[QStringLiteral("Id")].toString();
}
m_subTitle = toolTip.subTitle;
// Icon
KDbusImageVector image;

@ -197,6 +197,6 @@ void SystemTrayModel::updated(StatusNotifierItemSource *item)
// update
if (idx != -1) {
dataChanged(index(idx, 0), index(idx, 0));
emit dataChanged(index(idx, 0), index(idx, 0));
}
}

Loading…
Cancel
Save