diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 23:42:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 23:42:39 +0000 |
commit | 7cdaac30f5b4aa1d38a7e003963df3fc48576537 (patch) | |
tree | 3b4240ececa0505321274fac325fd588be48a0a9 /ark/tar.cpp | |
parent | f7a66a3f0e39407e9a4071b1eee34430bf34c9d0 (diff) | |
download | tdeutils-7cdaac30f5b4aa1d38a7e003963df3fc48576537.tar.gz tdeutils-7cdaac30f5b4aa1d38a7e003963df3fc48576537.zip |
Fixed the majority of the xz and lzma handling code
There may still be an issue with the compress as menu and tar.lzma support, however it is relatively minor
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1166484 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ark/tar.cpp')
-rw-r--r-- | ark/tar.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ark/tar.cpp b/ark/tar.cpp index e3be8b0..7de54f9 100644 --- a/ark/tar.cpp +++ b/ark/tar.cpp @@ -208,10 +208,10 @@ TQString TarArch::getCompressor() if ( m_fileMimeType == "application/x-tbz" ) return TQString( "bzip2" ); - if ( m_fileMimeType == "application/x-lzma" ) + if ( m_fileMimeType == "application/x-tlz" ) return TQString( "lzma" ); - if ( m_fileMimeType == "application/x-xz" ) + if ( m_fileMimeType == "application/x-txz" ) return TQString( "xz" ); if( m_fileMimeType == "application/x-tzo" ) @@ -232,10 +232,10 @@ TQString TarArch::getUnCompressor() if ( m_fileMimeType == "application/x-tbz" ) return TQString( "bunzip2" ); - if ( m_fileMimeType == "application/x-lzma" ) + if ( m_fileMimeType == "application/x-tlz" ) return TQString( "unlzma" ); - if ( m_fileMimeType == "application/x-xz" ) + if ( m_fileMimeType == "application/x-txz" ) return TQString( "unxz" ); if( m_fileMimeType == "application/x-tzo" ) @@ -305,10 +305,13 @@ void TarArch::openFirstCreateTempDone() && ( m_fileMimeType != "application/x-tbz" ) ) { disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( openFirstCreateTempDone() ) ); + Q_ASSERT( !m_listingThread ); + m_listingThread = new TarListingThread( this, tmpfile ); + } + else { + Q_ASSERT( !m_listingThread ); + m_listingThread = new TarListingThread( this, m_filename ); } - - Q_ASSERT( !m_listingThread ); - m_listingThread = new TarListingThread( this, m_filename ); m_listingThread->start(); } |