- dolphinServices.front().second << newUrls;
-
- for (const auto& service: dolphinServices) {
- if (!service.second.isEmpty()) {
- service.first->call(openFiles ? QStringLiteral("openFiles") : QStringLiteral("openDirectories"), service.second, splitView);
- service.first->call(QStringLiteral("activateWindow"));
+ dolphinInterfaces.front().second << newUrls;
+
+ for (const auto& interface: dolphinInterfaces) {
+ if (!interface.second.isEmpty()) {
+ auto reply = openFiles ? interface.first->openFiles(interface.second, splitView) : interface.first->openDirectories(interface.second, splitView);
+ reply.waitForFinished();
+ if (!reply.isError()) {
+ interface.first->activateWindow();
+ attached = true;
+ }