From 61502b2da9ae1bc182495ceaac8c5f5628a835ce Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 1 Jun 2014 07:32:11 +1000 Subject: [PATCH] Fix RX changes highlighting regression --- sleepyhead/statistics.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sleepyhead/statistics.cpp b/sleepyhead/statistics.cpp index 8c0d0acb..d4b4fbda 100644 --- a/sleepyhead/statistics.cpp +++ b/sleepyhead/statistics.cpp @@ -1217,12 +1217,16 @@ QString Statistics::GenerateHTML() tooltiphide = "tooltip.hide();"; } - html += QString("") + QString datarowclass; + if (rx.highlight == 0) datarowclass="class=datarow"; + html += QString("") .arg(color) .arg(tooltipshow) .arg(tooltiphide) .arg(rx.first.toString(Qt::ISODate)) - .arg(rx.last.toString(Qt::ISODate)); + .arg(rx.last.toString(Qt::ISODate)) + .arg(datarowclass); + html += QString("%1").arg(rx.first.toString(Qt::SystemLocaleShortDate)); html += QString("%1").arg(rx.last.toString(Qt::SystemLocaleShortDate));