Updated to latest mediamanager dcop interface.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/36/head
Michele Calgaro 6 years ago
parent 2cc912450d
commit 95ee524a54
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1647,8 +1647,13 @@ void FileProtocol::unmount( const TQString& _point )
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() )

Loading…
Cancel
Save