2021-09-16 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdairplay(1) that caused the Stop Counter
	to display incorrect Time Remaining values when the system's
	Time Format was set to 'Twelve Hour'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-16 15:46:36 -04:00
parent 6ec4cd86e7
commit f6d0e37b42
2 changed files with 6 additions and 1 deletions

View File

@@ -22442,3 +22442,7 @@
activate upon *release* of the spacebar.
* Fixed a regression that broke the Alt-X keybinding in
rdairplay(1).
2021-09-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdairplay(1) that caused the Stop Counter
to display incorrect Time Remaining values when the system's
Time Format was set to 'Twelve Hour'.

View File

@@ -133,7 +133,8 @@ void StopCounter::UpdateTime()
msecs += 86400000; /* 1 day */
}
if(stop_running) {
text=rda->timeString(QTime(0,0,1).addMSecs(msecs));
// text=rda->timeString(QTime(0,0,1).addMSecs(msecs));
text=QTime(0,0,1).addMSecs(msecs).toString("hh:mm:ss");
p->drawText((sizeHint().width()-2-p->fontMetrics().width(text))/2,59,
text);
}