mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix: use safer conversion from QString to filesystem::path
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
7c00807de7
commit
4dfe6ae988
@ -543,7 +543,7 @@ bool FileSystem::remove(const QString &fileName, QString *errorString)
|
||||
#endif
|
||||
|
||||
try {
|
||||
if (!std::filesystem::remove(std::filesystem::path{fileName.toUtf8().data()})) {
|
||||
if (!std::filesystem::remove(std::filesystem::path{fileName.toStdWString()})) {
|
||||
if (errorString) {
|
||||
*errorString = QObject::tr("File is already deleted");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user