From 4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7 Mon Sep 17 00:00:00 2001
From: llornkcor <llornkcor>
Date: Sun, 01 Sep 2002 14:50:06 +0000
Subject: fix for bug 0000014

---
(limited to 'core')

diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index 0ced256..c54a00f 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -597,7 +597,7 @@ void LauncherView::internalPopulate( AppLnkSet *folder, const QString& typefilte
 
     while ( it.current() ) {
       // show only the icons for existing files
-      if (!QFile(it.current()->file()).exists() )
+      if (!QFile(it.current()->file()).exists() & it.current()->file().left(4) != "http")
   {
     //maybe insert some .desktop file deletion code later
     //maybe dir specific
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() {
         }
 
         QListViewItem * newItem;
-        if ( QFile( dit.current()->file()).exists()  ) {
-//              qDebug(dit.current()->name());
+        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( QFile( dit.current()->file()).size() ), storage);
+                                                   QString::number(size ), storage);
             newItem->setPixmap(0, Resource::loadPixmap( "opieplayer/musicfile" ));
         }
     }
--
cgit v0.9.0.2