mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino: fix nullpointer crash if no channels are present
This commit is contained in:
committed by
Jacek Jendrzej
parent
a33086568b
commit
b8aa68a2da
@@ -147,6 +147,8 @@ void CBEChannelSelectWidget::paintItem(uint32_t itemNr, int paintNr, bool pselec
|
||||
|
||||
void CBEChannelSelectWidget::onOkKeyPressed()
|
||||
{
|
||||
if (selected >= Channels.size())
|
||||
return;
|
||||
setModified();
|
||||
if (isChannelInBouquet(selected))
|
||||
g_bouquetManager->Bouquets[bouquet]->removeService(Channels[selected]->channel_id);
|
||||
|
Reference in New Issue
Block a user