#41 Mantis ID:7971 - Idle Shutdown displays wrong number of seconds.

open
nobody
None
3
2008-12-09
2008-12-09
omfgppc
No

Reporter: petebisson
Severity: Patch
Category: All
Project: xTupleApps

Version:

Description:
The Idle Shutdown screen incorrectly displays the number of seconds left until closing.

The Display looks like:

Shutdown in 60 seconds.
.
5960 seconds.
.
5860 seconds.

This is caused by there being two QLabel widgets named "_count" in the idleShutdown.ui file.

UIC helpfully renames the second instance "_count1" when creating ui_idleShutdown.h, but this is the instance that should be updated by the timer event.

Following the conventions elsewhere in the codebase, the attached patch renames the first instance of the QLabel to be "_countLit".

Steps to reproduce:

Additional information:

Note:
This change may also need to cascade through the translation system.

I am not familiar with localization in QT, so I am leaving this line of enquiry as an exercise for the reader ...

Read more at http://www.xtuple.org/mantis/view.php?id=7971

Discussion