Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 65dc5fb..8d66407 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp | |||
@@ -1030,10 +1030,14 @@ void PlayListWidget::populateAudioView() { | |||
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | QListViewItem * newItem; | 1032 | QListViewItem * newItem; |
1033 | if ( QFile( dit.current()->file()).exists() ) { | 1033 | if ( QFile( dit.current()->file()).exists() || dit.current()->file().left(4) == "http" ) { |
1034 | // qDebug(dit.current()->name()); | 1034 | long size; |
1035 | if( dit.current()->file().left(4) == "http" ) | ||
1036 | size=0; | ||
1037 | else | ||
1038 | size = QFile( dit.current()->file() ).size(); | ||
1035 | newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), | 1039 | newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), |
1036 | QString::number( QFile( dit.current()->file()).size() ), storage); | 1040 | QString::number(size ), storage); |
1037 | newItem->setPixmap(0, Resource::loadPixmap( "opieplayer/musicfile" )); | 1041 | newItem->setPixmap(0, Resource::loadPixmap( "opieplayer/musicfile" )); |
1038 | } | 1042 | } |
1039 | } | 1043 | } |