Stopwatch check if a label has been set before accessing it.

This commit is contained in:
Eelke Klein 2017-01-25 06:51:28 +01:00
parent 56fbd20635
commit 202e6e431a

View file

@ -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()) {