Commit ec1f64f8 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: EPGView: default focus to first event

parent 8b5d588d
......@@ -196,6 +196,11 @@ bool EPGView::addEPGEvent( vlc_epg_event_t *eventdata, QString channelName, bool
scene()->addItem( epgItem );
/* update only our row (without calling the updatechannels()) */
epgItem->setRow( epgitemsByChannel.keys().indexOf( channelName ) );
/* First Insert, needs to focus by default then */
if ( epgitemsByChannel.keys().count() == 1 &&
epgItemByTime->count() == 1 )
focusItem( epgItem );
}
mutex.unlock();
......
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