Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
c38fe49d
Commit
c38fe49d
authored
Nov 19, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewer/bodypartformatter/itinerary/itinerarykdeconnecthandler.cpp
View file @
c38fe49d
...
...
@@ -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"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment