diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 11:58:10 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 11:58:10 +0900 |
| commit | 282ca40047a406f696e60127546e311453ba53f0 (patch) | |
| tree | a7e379f81806e056b009c6994d81b6554435ef04 /libk3b | |
| parent | d48e98ed25be383693c5ed3aa7fb0ffc97db037f (diff) | |
| download | k3b-master.tar.gz k3b-master.zip | |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libk3b')
| -rw-r--r-- | libk3b/core/k3bglobals.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libk3b/core/k3bglobals.cpp b/libk3b/core/k3bglobals.cpp index 4bc0ff4..b1efa73 100644 --- a/libk3b/core/k3bglobals.cpp +++ b/libk3b/core/k3bglobals.cpp @@ -461,23 +461,7 @@ K3bDevice::Device* K3b::urlToDevice( const KURL& deviceUrl ) KURL K3b::convertToLocalUrl( const KURL& url ) { if( !url.isLocalFile() ) { -#if KDE_IS_VERSION(3,4,91) return TDEIO::NetAccess::mostLocalURL( url, 0 ); -#else -#ifndef UDS_LOCAL_PATH -#define UDS_LOCAL_PATH (72 | TDEIO::UDS_STRING) -#else - using namespace TDEIO; -#endif - TDEIO::UDSEntry e; - if( TDEIO::NetAccess::stat( url, e, 0 ) ) { - const TDEIO::UDSEntry::ConstIterator end = e.end(); - for( TDEIO::UDSEntry::ConstIterator it = e.begin(); it != end; ++it ) { - if( (*it).m_uds == UDS_LOCAL_PATH && !(*it).m_str.isEmpty() ) - return KURL::fromPathOrURL( (*it).m_str ); - } - } -#endif } return url; @@ -552,11 +536,9 @@ bool K3b::unmount( K3bDevice::Device* dev ) TQString mntDev = dev->blockDeviceName(); -#if KDE_IS_VERSION(3,4,0) // first try to unmount it the standard way if( TDEIO::NetAccess::synchronousRun( TDEIO::unmount( mntDev, false ), 0 ) ) return true; -#endif TQString umountBin = K3b::findExe( "umount" ); if( !umountBin.isEmpty() ) { @@ -592,11 +574,9 @@ bool K3b::mount( K3bDevice::Device* dev ) TQString mntDev = dev->blockDeviceName(); -#if KDE_IS_VERSION(3,4,0) // first try to mount it the standard way if( TDEIO::NetAccess::synchronousRun( TDEIO::mount( true, 0, mntDev, 0, false ), 0 ) ) return true; -#endif if( !K3bDevice::Connection::instance()->mount( dev ) ) return true; |
