Skip to content
Commit f031134d authored by Igor Kushnir's avatar Igor Kushnir 💬
Browse files

StatusBar: don't subtract zero from message timeouts

m_time.elapsed() equals 0 in StatusBar::updateMessage() if a new status
message arrives very soon after the previous one. This happens in
practice when the "Process exited" status message is immediately
followed by the "Exited normally" status message at the end of a debug
session. An integer equality check is much faster than iterating over a
QHash, so this is an optimization.
parent 06d6a126
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment