openbsd-ports/multimedia/k3b/patches/patch-src_k3bappdevicemanager_cpp

26 lines
901 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_k3bappdevicemanager_cpp,v 1.1.1.1 2008/05/11 22:18:35 jakemsr Exp $
--- src/k3bappdevicemanager.cpp.orig Fri Nov 2 02:55:34 2007
+++ src/k3bappdevicemanager.cpp Fri Feb 1 09:15:15 2008
@@ -185,7 +185,11 @@ void K3bAppDeviceManager::mountDisk()
if( !K3b::isMounted( currentDevice() ) )
K3b::mount( currentDevice() );
- emit mountFinished( KIO::findDeviceMountPoint( currentDevice()->blockDeviceName() ) );
+ QString mntDev = currentDevice()->blockDeviceName();
+#ifdef Q_OS_OPENBSD
+ mntDev.replace(QRegExp("/dev/rcd"), "/dev/cd");
+#endif
+ emit mountFinished( KIO::findDeviceMountPoint( mntDev ) );
}
}
@@ -213,7 +217,7 @@ void K3bAppDeviceManager::ejectDisk()
void K3bAppDeviceManager::loadDisk()
{
if( currentDevice() )
- K3bDevice::reload( currentDevice() );
+ K3bDevice::load( currentDevice() );
}