Commit f61e4b60 authored by Nicolas Fella's avatar Nicolas Fella Committed by Laurent Montel
Browse files

Fix build with newer Qt

(cherry picked from commit 5572b3fa)
parent e7f70158
Pipeline #41935 failed with stage
in 5 minutes and 16 seconds
......@@ -757,7 +757,7 @@ QString alarmTimeText(const DateTime& dateTime, char leadingZero)
bool useFullFormat = leadingZero && !timeFullFormat.isEmpty();
QString timeText = kdt.time().toString(useFullFormat ? timeFullFormat : timeFormat);
if (useFullFormat && leadingZero != '0' && timeText.at(hourOffset) == QLatin1Char('0'))
timeText[hourOffset] = leadingZero;
timeText[hourOffset] = QChar::fromLatin1(leadingZero);
dateTimeText += timeText;
}
return dateTimeText + QLatin1Char(' ');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment