summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-01 14:50:06 (UTC)
committer llornkcor <llornkcor>2002-09-01 14:50:06 (UTC)
commit4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7 (patch) (side-by-side diff)
tree4371833546bed60c7e4d48db8527781c57533bec
parent2dab5b4aa31d795e968f81eb053ab507d96ff541 (diff)
downloadopie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.zip
opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.gz
opie-4602b00b2d76fca5c9ab86a589192f6bdb1e7ee7.tar.bz2
fix for bug 0000014
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp2
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp10
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp11
3 files changed, 15 insertions, 8 deletions
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
@@ -588,25 +588,25 @@ void LauncherView::itemPressed( int btn, QIconViewItem *item )
*/
item->setSelected(FALSE);
}
}
void LauncherView::internalPopulate( AppLnkSet *folder, const QString& typefilter )
{
QListIterator<AppLnk> it( folder->children() );
icons->setTypeFilter(typefilter,FALSE);
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
}
else
{
icons->addItem(*it,FALSE);
}
++it;
}
icons->sort();
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
@@ -1021,28 +1021,32 @@ void PlayListWidget::populateAudioView() {
QListIterator<DocLnk> dit( files.children() );
QListIterator<FileSystem> it ( fs );
QString storage;
for ( ; dit.current(); ++dit ) {
for( ; it.current(); ++it ){
const QString name = (*it)->name();
const QString path = (*it)->path();
if(dit.current()->file().find(path) != -1 ) storage=name;
}
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" ));
}
}
}
void PlayListWidget::populateVideoView() {
videoView->clear();
StorageInfo storageInfo;
const QList<FileSystem> &fs = storageInfo.fileSystems();
if(!videoScan ) scanForVideo();
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
@@ -720,28 +720,31 @@ void PlayListWidget::populateAudioView() {
QString storage;
for ( ; dit.current(); ++dit ) {
for( ; it.current(); ++it ){
const QString name = (*it)->name();
const QString path = (*it)->path();
if(dit.current()->file().find(path) != -1 ) {
storage = name;
}
}
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" ) );
}
}
}
void PlayListWidget::populateVideoView() {
videoView->clear();
StorageInfo storageInfo;
const QList<FileSystem> &fs = storageInfo.fileSystems();
if(!videoScan ) {