|
|
@ -1644,11 +1644,16 @@ void FileProtocol::unmount( const TQString& _point )
|
|
|
|
|
|
|
|
|
|
|
|
if (!udi.isEmpty())
|
|
|
|
if (!udi.isEmpty())
|
|
|
|
reply = d.call("unmount", udi);
|
|
|
|
reply = d.call("unmount", udi);
|
|
|
|
|
|
|
|
|
|
|
|
if (udi.isEmpty() || !reply.isValid())
|
|
|
|
if (udi.isEmpty() || !reply.isValid())
|
|
|
|
err = olderr;
|
|
|
|
err = olderr;
|
|
|
|
else if (reply.isValid())
|
|
|
|
else if (reply.isValid()) {
|
|
|
|
reply.get(err);
|
|
|
|
TQStringVariantMap unmountResult;
|
|
|
|
|
|
|
|
reply.get(unmountResult);
|
|
|
|
|
|
|
|
if (!unmountResult.contains("result") || !unmountResult["result"].toBool()) {
|
|
|
|
|
|
|
|
err = unmountResult.contains("errStr") ? unmountResult["errStr"].toString() : i18n("Unknown unmount error.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( err.isEmpty() )
|
|
|
|
if ( err.isEmpty() )
|
|
|
|