From abcb78d7cf7ff1bf7b5bd583878eece426e1db93 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Thu, 14 Jan 2016 00:29:20 +0100 Subject: [PATCH] CChannelList: No error message when no channels found and... ...frontend is only simulated Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7fd55534266248f8872266b88685669fc793b25a Author: Michael Liebmann Date: 2016-01-14 (Thu, 14 Jan 2016) ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 1540fced1..55420818f 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1155,7 +1155,9 @@ bool CChannelList::zapTo_ChannelID(const t_channel_id channel_id, bool force) bool CChannelList::showEmptyError() { if ((*chanlist).empty()) { - DisplayErrorMessage(g_Locale->getText(LOCALE_CHANNELLIST_NONEFOUND)); // UTF-8 + /* No error message when the frontend is only simulated */ + if (!getenv("SIMULATE_FE")) + DisplayErrorMessage(g_Locale->getText(LOCALE_CHANNELLIST_NONEFOUND)); // UTF-8 return true; } return false;