Skip to content

Commit

Permalink
WIP: Allow QMLBridge::fileExists on Android as well
Browse files Browse the repository at this point in the history
It works just fine.

TODO:
- Needs to be reevaluated when reselecting files. The name stays, so QML
  doesn't do it automatically.
  • Loading branch information
Vogtinator committed Mar 28, 2022
1 parent a23043c commit f16a39a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions qmlbridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ QString QMLBridge::toLocalFile(QUrl url)

bool QMLBridge::fileExists(QString path)
{
if(path.startsWith(QStringLiteral("content://")))
return true; // Android content URL, can't do much

return QFile::exists(path);
}

Expand Down

0 comments on commit f16a39a

Please sign in to comment.