diff --git a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp index 080fe7fa9..8d1e33c82 100644 --- a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp +++ b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.cpp @@ -177,9 +177,12 @@ void MountHelper::eject(const TQString &device, bool quiet) // Try TDE HW library eject first... TDEHardwareDevices *hwdevices = TDEGlobal::hardwareDevices(); TDEGenericDevice *hwdevice = hwdevices->findByDeviceNode(device); - if (hwdevice->type() == TDEGenericDeviceType::Disk) { + if (hwdevice->type() == TDEGenericDeviceType::Disk) + { TDEStorageDevice *sdevice = static_cast(hwdevice); - if (sdevice->ejectDrive()) { + TQStringVariantMap ejectResult = sdevice->ejectDrive(); + if (ejectResult["result"].toBool() == true) + { // Success! ::exit(0); }