]> git.sesse.net Git - vlc/commitdiff
Qt/EPG: deactivate crashing code on Win32 for now.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 21:23:41 +0000 (23:23 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jun 2010 21:24:04 +0000 (23:24 +0200)
modules/gui/qt4/components/epg/EPGView.cpp

index 578f886a97e5e75369a74ec760445475ddc3e232..ea32110601ca581bccc8a8ac0d66b84aa9873bd9 100644 (file)
@@ -60,7 +60,11 @@ void EPGView::setStartTime( const QDateTime& startTime )
 
     for ( int i = 0; i < itemList.count(); ++i )
     {
+#ifndef WIN32
         EPGItem* item = dynamic_cast<EPGItem*>( 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<EPGItem*>( list.at( i ) );
+#else
+        EPGItem *item = NULL;
+#endif
         if ( !item ) continue;
         QDateTime itemEnd = item->start().addSecs( item->duration() );