Changeset View
Changeset View
Standalone View
Standalone View
src/dbusinterface.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | { | 54 | { | ||
55 | Q_UNUSED(startUpId); | 55 | Q_UNUSED(startUpId); | ||
56 | const QList<QUrl> urls = Dolphin::validateUris(uriList); | 56 | const QList<QUrl> urls = Dolphin::validateUris(uriList); | ||
57 | if (urls.isEmpty()) { | 57 | if (urls.isEmpty()) { | ||
58 | return; | 58 | return; | ||
59 | } | 59 | } | ||
60 | const auto serviceName = QStringLiteral("org.kde.dolphin-%1").arg(QCoreApplication::applicationPid()); | 60 | const auto serviceName = QStringLiteral("org.kde.dolphin-%1").arg(QCoreApplication::applicationPid()); | ||
61 | if(!Dolphin::attachToExistingInstance(urls, true, GeneralSettings::splitView(), serviceName)) { | 61 | if(!Dolphin::attachToExistingInstance(urls, true, GeneralSettings::splitView(), serviceName)) { | ||
62 | Dolphin::openNewWindow(urls); | 62 | Dolphin::openNewWindow(urls, nullptr, Dolphin::OpenNewWindowFlag::Select); | ||
63 | }; | 63 | }; | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | void DBusInterface::ShowItemProperties(const QStringList& uriList, const QString& startUpId) | 66 | void DBusInterface::ShowItemProperties(const QStringList& uriList, const QString& startUpId) | ||
67 | { | 67 | { | ||
68 | Q_UNUSED(startUpId); | 68 | Q_UNUSED(startUpId); | ||
69 | const QList<QUrl> urls = Dolphin::validateUris(uriList); | 69 | const QList<QUrl> urls = Dolphin::validateUris(uriList); | ||
70 | if (!urls.isEmpty()) { | 70 | if (!urls.isEmpty()) { | ||
71 | KPropertiesDialog::showDialog(urls); | 71 | KPropertiesDialog::showDialog(urls); | ||
72 | } | 72 | } | ||
73 | } | 73 | } |