user_menue: fix possible segfault, after remove channelist

Origin commit data
------------------
Branch: ni/coolstream
Commit: 24188fa432
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-02-15 (Sat, 15 Feb 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2020-02-15 18:32:03 +01:00
committed by vanhofen
parent cb22fb5815
commit b353cbdb0a

View File

@@ -200,7 +200,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
bool _mode_ts = CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts;
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) &&
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
(CZapit::getInstance()->GetCurrentChannel() && !CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
int rec_mode = (CRecordManager::getInstance()->GetRecordMode() & CRecordManager::RECMODE_REC_TSHIFT);
bool timeshift = CMoviePlayerGui::getInstance().timeshift;