daily Event Combo Tooltip off by one entry

This commit is contained in:
LoudSnorer 2023-01-20 19:59:28 -05:00
parent 9b12ecb2b4
commit 30db244ac5

View File

@ -1687,9 +1687,10 @@ void Daily::Load(QDate date)
ui->eventsCombo->addItem(*icon_up_down, tr("10 of 10 Event Types"), 0); // Translation used only for spacing
for (int i=0; i < available.size(); ++i) {
ChannelID code = available.at(i);
int comboxBoxIndex = i+1;
schema::Channel & chan = schema::channel[code];
ui->eventsCombo->addItem(chan.enabled() ? *icon_on : * icon_off, chan.label(), code);
ui->eventsCombo->setItemData(i, chan.fullname(), Qt::ToolTipRole);
ui->eventsCombo->setItemData(comboxBoxIndex, chan.fullname(), Qt::ToolTipRole);
}
setFlagText();