浏览代码

add comment

Laserlicht 1 月之前
父节点
当前提交
05ef1348db
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      launcher/helper.cpp

+ 3 - 0
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))