Browse Source

Updated to latest mediamanager dcop interface.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/36/head
Michele Calgaro 3 months ago
parent
commit
95ee524a54
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      tdeioslave/file/file.cc

+ 9
- 4
tdeioslave/file/file.cc View File

@@ -1644,11 +1644,16 @@ void FileProtocol::unmount( const TQString& _point )

if (!udi.isEmpty())
reply = d.call("unmount", udi);
if (udi.isEmpty() || !reply.isValid())
err = olderr;
else if (reply.isValid())
reply.get(err);
err = olderr;
else if (reply.isValid()) {
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() )

Loading…
Cancel
Save