Commit c38fe49d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Long time ago that kde-connect version is > that 1.4.0

parent 7df48864
Pipeline #99045 passed with stage
in 50 minutes and 9 seconds
......@@ -53,17 +53,7 @@ QVector<ItineraryKDEConnectHandler::Device> ItineraryKDEConnectHandler::devices(
void ItineraryKDEConnectHandler::sendToDevice(const QString &fileName, const QString &deviceId)
{
const QDBusInterface remoteApp(QStringLiteral("org.kde.kdeconnect"),
QStringLiteral("/MainApplication"),
QStringLiteral("org.qtproject.Qt.QCoreApplication"));
QVersionNumber kdeconnectVersion = QVersionNumber::fromString(remoteApp.property("applicationVersion").toString());
QString method;
if (kdeconnectVersion >= QVersionNumber(1, 4, 0)) {
method = QStringLiteral("openFile");
} else {
method = QStringLiteral("shareUrl");
}
const QString method = QStringLiteral("openFile");
QDBusMessage msg = QDBusMessage::createMethodCall(QStringLiteral("org.kde.kdeconnect"),
QStringLiteral("/modules/kdeconnect/devices/") + deviceId + QStringLiteral("/share"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment