author | llornkcor <llornkcor> | 2002-09-01 14:50:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-01 14:50:06 (UTC) |
commit | 4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7 (patch) (unidiff) | |
tree | 4371833546bed60c7e4d48db8527781c57533bec /core/multimedia | |
parent | 2dab5b4aa31d795e968f81eb053ab507d96ff541 (diff) | |
download | opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.zip opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.gz opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.bz2 |
fix for bug 0000014
-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 | |||
@@ -1027,16 +1027,20 @@ void PlayListWidget::populateAudioView() { | |||
1027 | const QString name = (*it)->name(); | 1027 | const QString name = (*it)->name(); |
1028 | const QString path = (*it)->path(); | 1028 | const QString path = (*it)->path(); |
1029 | if(dit.current()->file().find(path) != -1 ) storage=name; | 1029 | if(dit.current()->file().find(path) != -1 ) storage=name; |
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 | } |
1040 | 1044 | ||
1041 | } | 1045 | } |
1042 | 1046 | ||