Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 603a7a3..6c4d07f 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -730,8 +730,11 @@ void PlayListWidget::populateAudioView() { | |||
730 | 730 | ||
731 | QListViewItem * newItem; | 731 | QListViewItem * newItem; |
732 | if ( QFile( dit.current()->file()).exists() ) { | 732 | if ( QFile( dit.current()->file()).exists() || dit.current()->file().left(4) == "http" ) { |
733 | // qDebug(dit.current()->name()); | 733 | long size; |
734 | newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), | 734 | if( dit.current()->file().left(4) == "http" ) |
735 | QString::number( QFile( dit.current()->file()).size() ), storage); | 735 | size=0; |
736 | else | ||
737 | size = QFile( dit.current()->file() ).size(); | ||
738 | newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), QString::number(size ), storage); | ||
736 | newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) ); | 739 | newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) ); |
737 | } | 740 | } |