Stopwatch check if a label has been set before accessing it.
This commit is contained in:
parent
56fbd20635
commit
202e6e431a
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ void StopWatch::updateTimer()
|
|||
// m_timeElapsedLabel->setText(msfloatToHumanReadableString(diff.count()));
|
||||
if (m_elapsed.isValid()) {
|
||||
qint64 ms = m_elapsed.elapsed();
|
||||
if (m_output) {
|
||||
m_output->setText(msfloatToHumanReadableString(ms));
|
||||
}
|
||||
|
||||
|
||||
if (m_timer.isActive()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue