Commit 0f3f3d98 authored by Adrien Maglo's avatar Adrien Maglo Committed by Jean-Baptiste Kempf

Qt/EPG: Fix event deletion.

(cherry picked from commit c0dccd6f57da1f9a832aea1402c24c3c33c0da98)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 15c5d37e
......@@ -116,7 +116,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
}
// Remove old items
QMap<QString, EPGEvent*>::iterator i = m_events.begin();
QMultiMap<QString, EPGEvent*>::iterator i = m_events.begin();
while ( i != m_events.end() )
{
EPGEvent* item = i.value();
......@@ -124,7 +124,8 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
{
m_epgView->delEvent( item );
delete item;
i = m_events.erase( i );
i--;
m_events.erase( i + 1 );
}
else
item->updated = false;
......@@ -135,5 +136,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
// Update the global duration and start time.
m_epgView->updateDuration();
m_epgView->updateStartTime();
// Udate the channel list.
m_channelsWidget->update();
}
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