mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
msgbox: fix segfault with null pointer progressbar
This commit is contained in:
@@ -323,7 +323,8 @@ int CMsgBox::exec()
|
|||||||
|
|
||||||
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
||||||
if (timeout > 0) {
|
if (timeout > 0) {
|
||||||
timeout_pb->setValues(0, timeout);
|
if(timeout_pb)
|
||||||
|
timeout_pb->setValues(0, timeout);
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||||
}
|
}
|
||||||
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
||||||
|
Reference in New Issue
Block a user