From c3d1af31718010dab135695e8a13a454098489f0 Mon Sep 17 00:00:00 2001 From: svenhoefer 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) Signed-off-by: Thilo Graf --- 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 f92c2e558..24eace926 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2123,8 +2123,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());