mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
infoviewer: fix possible segfault
If no NEUTRINO_ICON_REC was defined, it will crash here. Now 1st icon will be checked for availability and is used. This error was observed on start of timeshift recording.
This commit is contained in:
@@ -301,10 +301,13 @@ void CInfoViewer::showRecordIcon (const bool show)
|
|||||||
|
|
||||||
if (rec->isPainted())
|
if (rec->isPainted())
|
||||||
{
|
{
|
||||||
if (rec->getCCItem(NEUTRINO_ICON_REC)->isPainted())
|
if (rec->getCCItem(0))
|
||||||
rec->getCCItem(NEUTRINO_ICON_REC)->kill();
|
{
|
||||||
else
|
if (rec->getCCItem(0)->isPainted())
|
||||||
rec->getCCItem(NEUTRINO_ICON_REC)->paint();
|
rec->getCCItem(0)->kill();
|
||||||
|
else
|
||||||
|
rec->getCCItem(0)->paint();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rec->paint();
|
rec->paint();
|
||||||
|
Reference in New Issue
Block a user