Fix importing files on TVs
This commit is contained in:
parent
65870ad5c9
commit
7df050371e
4 changed files with 21 additions and 10 deletions
|
|
@ -165,7 +165,9 @@ QString AndroidController::openFile(const QString &filter)
|
|||
[&fileName, &wait](const QString &uri) {
|
||||
qDebug() << "Android event: file opened; uri:" << uri;
|
||||
fileName = QQmlFile::urlToLocalFileOrQrc(uri);
|
||||
qDebug() << "Android opened filename:" << fileName;
|
||||
qDebug() << "Qt url to local file:" << fileName;
|
||||
// if qt failed, try using just uri
|
||||
if (fileName.isEmpty()) fileName = uri;
|
||||
wait.quit();
|
||||
},
|
||||
static_cast<Qt::ConnectionType>(Qt::QueuedConnection | Qt::SingleShotConnection));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue