Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
k3b
k3b-fix_mountpoint.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File k3b-fix_mountpoint.diff of Package k3b
--- libk3bdevice/k3bdevicemanager.cpp +++ libk3bdevice/k3bdevicemanager.cpp @@ -721,6 +722,7 @@ K3bDevice::Device* K3bDevice::DeviceManager::addDevice( K3bDevice::Device* device ) { const QString devicename = device->devicename(); + kdDebug() << "(K3bDevice::addDevice()) device: " << devicename << endl; if( !device->init() ) { kdDebug() << "Could not initialize device " << devicename << endl; @@ -750,6 +752,12 @@ device->setCurrentWriteSpeed( device->maxWriteSpeed() ); } + if ( !KIO::findDeviceMountPoint( devicename ).isEmpty() ) { + device->setMountPoint( KIO::findDeviceMountPoint( devicename ) ); + device->setMountDevice( devicename ); + device->m_automount = true; // used for? + } + emit changed(); emit changed( this ); } @@ -761,6 +769,8 @@ void K3bDevice::DeviceManager::removeDevice( const QString& dev ) { if( Device* device = findDevice( dev ) ) { + device->setMountPoint( QString::null ); + device->setMountDevice( QString::null ); d->cdReader.removeRef( device ); d->dvdReader.removeRef( device ); d->cdWriter.removeRef( device );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor