[Notifications] Support description where only a value is set

BUG: 423218
FIXED-IN: 5.19.2
wilder-portage-prov
Kai Uwe Broulik 6 years ago
parent 3d224cb1d6
commit 09e73292aa
  1. 3
      applets/notifications/package/contents/ui/JobDetails.qml
  2. 2
      libnotificationmanager/job_p.cpp

@ -79,8 +79,7 @@ GridLayout {
Component.onCompleted: bindText()
function bindText() {
text = Qt.binding(function() {
return jobDetails["descriptionLabel" + modelData] && jobDetails["descriptionValue" + modelData]
? jobDetails["descriptionValue" + modelData] : "";
return jobDetails["descriptionValue" + modelData] || "";
});
}

@ -134,8 +134,6 @@ void JobPrivate::updateHasDetails()
|| m_processedBytes > 0
|| m_processedFiles > 0
|| m_processedDirectories > 0
|| !m_descriptionLabel1.isEmpty()
|| !m_descriptionLabel2.isEmpty()
|| !m_descriptionValue1.isEmpty()
|| !m_descriptionValue2.isEmpty()
|| m_speed > 0;

Loading…
Cancel
Save