From: Jean-Baptiste Kempf Date: Tue, 15 Jun 2010 21:23:41 +0000 (+0200) Subject: Qt/EPG: deactivate crashing code on Win32 for now. X-Git-Tag: 1.2.0-pre1~6165 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=89c1b2c76e8922ebb44623c3b419d1b4a3a699f6;p=vlc Qt/EPG: deactivate crashing code on Win32 for now. --- diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp index 578f886a97..ea32110601 100644 --- a/modules/gui/qt4/components/epg/EPGView.cpp +++ b/modules/gui/qt4/components/epg/EPGView.cpp @@ -60,7 +60,11 @@ void EPGView::setStartTime( const QDateTime& startTime ) for ( int i = 0; i < itemList.count(); ++i ) { +#ifndef WIN32 EPGItem* item = dynamic_cast( itemList.at( i ) ); +#else + EPGItem *item = NULL; +#endif if ( !item ) continue; item->setStart( item->start().addSecs( diff ) ); } @@ -110,7 +114,11 @@ void EPGView::updateDuration() for ( int i = 0; i < list.count(); ++i ) { +#ifndef WIN32 EPGItem* item = dynamic_cast( list.at( i ) ); +#else + EPGItem *item = NULL; +#endif if ( !item ) continue; QDateTime itemEnd = item->start().addSecs( item->duration() );