mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/gui/osd_setup.cpp supplement to 682b6f57
, fix segfault if clock is NULL#
This commit is contained in:
@@ -1390,7 +1390,7 @@ int COsdSetup::showContextChanlistMenu(CChannelList *parent_channellist)
|
||||
CMenuWidget * menu_chanlist = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width);
|
||||
|
||||
//using native callback to ensure stop header clock in parent channellist before paint this menu window
|
||||
if (parent_channellist)
|
||||
if (parent_channellist && parent_channellist->getHeaderObject()->getClockObject())
|
||||
menu_chanlist->OnBeforePaint.connect(sigc::mem_fun(parent_channellist->getHeaderObject()->getClockObject(), &CComponentsFrmClock::block));
|
||||
|
||||
menu_chanlist->enableSaveScreen(true);
|
||||
|
Reference in New Issue
Block a user