msgbox: fix segfault with null pointer progressbar

This commit is contained in:
Jacek Jendrzej
2020-01-24 22:03:14 +01:00
parent c133d89069
commit 0aaadf2aef

View File

@@ -323,6 +323,7 @@ int CMsgBox::exec()
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
if (timeout > 0) {
if(timeout_pb)
timeout_pb->setValues(0, timeout);
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
}