[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kio/kio
From: David Faure <faure () kde ! org>
Date: 2006-04-11 9:05:27
Message-ID: 1144746327.728286.14889.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 528500 by dfaure:
Fix bug detected by unit test
M +6 -2 ktar.cpp
--- trunk/KDE/kdelibs/kio/kio/ktar.cpp #528499:528500
@@ -105,8 +105,12 @@
bool KTar::createDevice( QIODevice::OpenMode mode )
{
Q_UNUSED( mode );
- if( d->mimetype != "application/x-tar" )
+ if( d->mimetype == "application/x-tar" )
{
+ return KArchive::createDevice( mode );
+ }
+ else
+ {
// The compression filters are very slow with random access.
// So instead of applying the filter to the device,
// the file is completely extracted instead,
@@ -122,8 +126,8 @@
d->tmpFile->setAutoDelete(true);
setDevice( d->tmpFile->file() );
+ return true;
}
- return true;
}
KTar::KTar( QIODevice * dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic