[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Archive compression in KTar seems broken
From: Florian Simnacher <simnacher () gmx ! de>
Date: 2002-05-30 22:58:10
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello David,
I have tested your patch (attach for convenience) and it works now as expected.
Thanks and kind regards,
Florian
Index: ktar.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/kio/ktar.cpp,v
retrieving revision 1.48
diff -u -p -r1.48 ktar.cpp
- --- ktar.cpp 2002/04/28 10:27:30 1.48
+++ ktar.cpp 2002/05/30 13:04:42
@@ -56,7 +56,10 @@ KTar::KTar( const QString& filename, con
bool forced = true;
if ( mimetype.isEmpty() )
{
- - mimetype = KMimeType::findByFileContent( filename )->name();
+ if ( QFile::exists( filename ) )
+ mimetype = KMimeType::findByFileContent( filename )->name();
+ else
+ mimetype = KMimeType::findByPath( filename, 0, true )->name();
kdDebug() << "KTar::KTar mimetype=" << mimetype << endl;
// Don't move to prepareDevice - the other constructor theoretically allows ANY filter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE89q6FbqFF4eXfGj4RAj+8AJ9lQ13Fvk83w928li0hihbhp87XjQCffRsR
cEJfQTnpt8sOYs+lSJW2ke4=
=LMxi
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic