From 05ef1348dbe5d6940c7295d65f351853bc832bef Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:48:57 +0200 Subject: [PATCH] add comment --- launcher/helper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/helper.cpp b/launcher/helper.cpp index 27ced433c..828733455 100644 --- a/launcher/helper.cpp +++ b/launcher/helper.cpp @@ -110,6 +110,9 @@ void performNativeCopy(QString src, QString dst) return QString::fromUtf8(encoded); }; + // %-encode unencoded parts of string. + // This is needed because QT returns a mixed content url with %-encoded and unencoded parts. If Android > 13 this causes problems reading this files. E.g. when using spaces and unicode characters in folder or filename. + // Related, but seems not completly fixed (at least in our setup): https://bugreports.qt.io/browse/QTBUG-114435 auto safeEncode = [&](QString uri) -> QString { if(!uri.startsWith("content://", Qt::CaseInsensitive))