Browse Source

Updated to latest mediamanager dcop interface.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
undefined
Michele Calgaro 1 month ago
parent
commit
33a28fdff3
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 )
1644 1644
 
1645 1645
        if (!udi.isEmpty())
1646 1646
            reply = d.call("unmount", udi);
1647
-       
1647
+
1648 1648
        if (udi.isEmpty() || !reply.isValid())
1649
-         err = olderr;
1650
-       else if (reply.isValid())
1651
-         reply.get(err);
1649
+           err = olderr;
1650
+       else if (reply.isValid()) {
1651
+           TQStringVariantMap unmountResult;
1652
+           reply.get(unmountResult);
1653
+           if (!unmountResult.contains("result") || !unmountResult["result"].toBool()) {
1654
+               err = unmountResult.contains("errStr") ? unmountResult["errStr"].toString() : i18n("Unknown unmount error.");
1655
+           }
1656
+       }
1652 1657
     }
1653 1658
 
1654 1659
     if ( err.isEmpty() )

Loading…
Cancel
Save