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 27, 2022
1 parent ae1fdc8 commit ef238c6
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 ef238c6

Please sign in to comment.