CChannelList: add missing compare for existant header object.

This commit is contained in:
2017-05-06 22:32:16 +02:00
parent bbb04bfb20
commit 86c18141dd

View File

@@ -2158,13 +2158,17 @@ void CChannelList::paintHead()
CComponentsHeader* CChannelList::getHeaderObject()
{
return header;
if (header)
return header;
return NULL;
}
void CChannelList::ResetModules()
{
delete header;
header = NULL;
if (header){
delete header;
header = NULL;
}
if(dline){
delete dline;
dline = NULL;