From f31586bbc6c93b29af281fb17b71902e9cc6dae4 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 8 Mar 2019 23:36:43 +0100 Subject: [PATCH] channellist: respect g_settings.channellist_show_numbers in history mode too (first quick'n'dirty version) Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/0c4d842ce6bdcb42e99bccd06c7eb5602bd284c2 Author: vanhofen Date: 2019-03-08 (Fri, 08 Mar 2019) Origin message was: ------------------ - channellist: respect g_settings.channellist_show_numbers in history mode too (first quick'n'dirty version) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 1f5f16daa..f50e8fe83 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2124,8 +2124,8 @@ void CChannelList::paintItem(int pos, const bool firstpaint) } int l=0; - if (this->historyMode) - l = snprintf(nameAndDescription, sizeof(nameAndDescription), ": %d %s", chan->number, chan->getName().c_str()); + if (this->historyMode && g_settings.channellist_show_numbers) + l = snprintf(nameAndDescription, sizeof(nameAndDescription), "%d: %s", chan->number, chan->getName().c_str()); else l = snprintf(nameAndDescription, sizeof(nameAndDescription), "%s", chan->getName().c_str());