Commit 94e96ccf authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning about index outside the valid range

parent d0035533
......@@ -64,6 +64,7 @@ QByteArray iconSetToArray(const QSet<EventViews::EventView::ItemIcon> &set)
QByteArray agendaViewIconDefaults()
{
QByteArray iconDefaults;
iconDefaults.resize(7);
iconDefaults[EventViews::EventView::CalendarCustomIcon] = 1;
iconDefaults[EventViews::EventView::TaskIcon] = 1;
......@@ -79,6 +80,7 @@ QByteArray agendaViewIconDefaults()
QByteArray monthViewIconDefaults()
{
QByteArray iconDefaults;
iconDefaults.resize(7);
iconDefaults[EventViews::EventView::CalendarCustomIcon] = 1;
iconDefaults[EventViews::EventView::TaskIcon] = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment