vlc | branch: master | Francois Cartegnie <[email protected]> | Thu Mar 28 16:51:44 2013 +0100| [ec1f64f876295c2b6e62b2a55e0bb4c096301356] | committer: Francois Cartegnie
Qt: EPGView: default focus to first event > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec1f64f876295c2b6e62b2a55e0bb4c096301356 --- modules/gui/qt4/components/epg/EPGView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp index db0161b..2f4e9fb 100644 --- a/modules/gui/qt4/components/epg/EPGView.cpp +++ b/modules/gui/qt4/components/epg/EPGView.cpp @@ -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(); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
