QFile::moveFileToTrash/Darwin: do set the error on iOS
We are returning false indicating we failed; explain why (functionality not implemented). Pick-to: 6.7 6.5 Change-Id: Ifb754f0e28774c20aa7cfffd17e6c97778fda575 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit d6bf56bb9268e944f75c960623a629a05b3ee6ac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
59268b6d54
commit
12667b77ff
@ -42,7 +42,7 @@ bool QFileSystemEngine::moveFileToTrash(const QFileSystemEntry &source,
|
||||
#else // watch, tv, iOS don't have a trash can
|
||||
Q_UNUSED(source);
|
||||
Q_UNUSED(newLocation);
|
||||
Q_UNUSED(error);
|
||||
error = QSystemError(ENOSYS, QSystemError::StandardLibraryError);
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user