mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
daily Event Combo Tooltip off by one entry
This commit is contained in:
parent
9b12ecb2b4
commit
30db244ac5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user