channellist: respect g_settings.channellist_show_numbers in history mode too (first quick'n'dirty version)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c4d842ce6
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2019-03-08 23:36:43 +01:00
parent 3a2119d247
commit f31586bbc6

View File

@@ -2124,8 +2124,8 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
} }
int l=0; int l=0;
if (this->historyMode) if (this->historyMode && g_settings.channellist_show_numbers)
l = snprintf(nameAndDescription, sizeof(nameAndDescription), ": %d %s", chan->number, chan->getName().c_str()); l = snprintf(nameAndDescription, sizeof(nameAndDescription), "%d: %s", chan->number, chan->getName().c_str());
else else
l = snprintf(nameAndDescription, sizeof(nameAndDescription), "%s", chan->getName().c_str()); l = snprintf(nameAndDescription, sizeof(nameAndDescription), "%s", chan->getName().c_str());