author | llornkcor <llornkcor> | 2002-09-01 14:50:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-01 14:50:06 (UTC) |
commit | 4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7 (patch) (side-by-side diff) | |
tree | 4371833546bed60c7e4d48db8527781c57533bec /noncore/multimedia/opieplayer2 | |
parent | 2dab5b4aa31d795e968f81eb053ab507d96ff541 (diff) | |
download | opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.zip opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.gz opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.bz2 |
fix for bug 0000014
Diffstat (limited to 'noncore/multimedia/opieplayer2') (more/less context) (ignore 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 @@ -729,10 +729,13 @@ void PlayListWidget::populateAudioView() { } QListViewItem * newItem; - if ( QFile( dit.current()->file()).exists() ) { - // qDebug(dit.current()->name()); - newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), - QString::number( QFile( dit.current()->file()).size() ), storage); + if ( QFile( dit.current()->file()).exists() || dit.current()->file().left(4) == "http" ) { + long size; + if( dit.current()->file().left(4) == "http" ) + size=0; + else + size = QFile( dit.current()->file() ).size(); + newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), QString::number(size ), storage); newItem->setPixmap( 0, Resource::loadPixmap( "opieplayer2/musicfile" ) ); } } |