diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 21:16:46 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 21:16:46 +0900 |
| commit | 4afaa31411ecdf0779d48662cf78d5cdc593ec53 (patch) | |
| tree | 60538645e888a231882576e8ba10307f23c0ec7f /lib/store/KoZipStore.cpp | |
| parent | 3a121c599732a399265a02efed9f8b60d8df7603 (diff) | |
| download | koffice-4afaa31411ecdf0779d48662cf78d5cdc593ec53.tar.gz koffice-4afaa31411ecdf0779d48662cf78d5cdc593ec53.zip | |
Remove use of KDE_IS_VERSION
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/store/KoZipStore.cpp')
| -rw-r--r-- | lib/store/KoZipStore.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/store/KoZipStore.cpp b/lib/store/KoZipStore.cpp index b58829c09..734f9135b 100644 --- a/lib/store/KoZipStore.cpp +++ b/lib/store/KoZipStore.cpp @@ -26,10 +26,6 @@ #include <tdeversion.h> #include <kurl.h> #include <tdeio/netaccess.h> -#if ! KDE_IS_VERSION( 3, 4, 1 ) -#include <tqdir.h> -#include <tqfileinfo.h> -#endif KoZipStore::KoZipStore( const TQString & _filename, Mode _mode, const TQCString & appIdentification ) { @@ -38,23 +34,7 @@ KoZipStore::KoZipStore( const TQString & _filename, Mode _mode, const TQCString << " mimetype = " << appIdentification << endl; m_pZip = new KZip( _filename ); - -#if ! KDE_IS_VERSION( 3, 4, 1 ) - // Workaround for KZip KSaveFile double deletion in tdelibs-3.4, - // when trying to write to a non-writable directory. - TQDir dir( TQFileInfo( _filename ).dir() ); - if (_mode == Write && !TQFileInfo( dir.path() ).isWritable() ) - { - kdWarning(s_area) << dir.path() << " isn't writable" << endl; - m_bGood = false; - m_currentDir = 0; - KoStore::init( _mode ); - } - else -#endif - { - m_bGood = init( _mode, appIdentification ); // open the zip file and init some vars - } + m_bGood = init( _mode, appIdentification ); // open the zip file and init some vars } KoZipStore::KoZipStore( TQIODevice *dev, Mode mode, const TQCString & appIdentification ) |
