D7192: Receiving a file with a '#' or '?' in the name from Android no longer results in the name cropped.
Aleix Pol Gonzalez
noreply at phabricator.kde.org
Wed Aug 9 20:50:28 UTC 2017
apol added a comment.
To me it sounds like the issue you are trying to solve is elsewhere.
Maybe make sure that in `FileTransferJob::startTransfer()` the destination is still correct?
INLINE COMMENTS
> shareplugin.cpp:92
> const QString filename = np.get<QString>(QStringLiteral("filename"), QString::number(QDateTime::currentMSecsSinceEpoch()));
> - const QUrl dir = destinationDir().adjusted(QUrl::StripTrailingSlash);
> - QUrl destination(dir.toString() + '/' + filename);
> + const QUrl dir = destinationDir().adjusted(QUrl::StripTrailingSlash | QUrl::RemoveScheme);
> + QUrl destination(QUrl::fromLocalFile(dir.toString() + '/' + filename));
RemoveScheme? Are you trying to do `toLocalFile`?
REPOSITORY
R224 KDE Connect
REVISION DETAIL
https://phabricator.kde.org/D7192
To: jeanv, #kde_connect
Cc: apol, jeanv, tfella, aboudhar, seebauer, progwolff, MayeulC, menasshock, ach, hkaelberer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20170809/4e1defad/attachment.html>
More information about the KDEConnect
mailing list