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

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-08 23:36:43 +01:00
committed by Thilo Graf
parent 8329304a48
commit c3d1af3171

View File

@@ -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());