Formatting

This commit is contained in:
Jonas Kvinge
2021-08-23 21:21:08 +02:00
parent ed7794f396
commit ea2bfbda44
111 changed files with 833 additions and 425 deletions

View File

@@ -109,18 +109,22 @@ bool FilesystemMusicStorage::DeleteFromStorage(const DeleteJob &job) {
if (job.use_trash_) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
if (fileInfo.isDir())
if (fileInfo.isDir()) {
return Utilities::MoveToTrashRecursive(path);
else
}
else {
return QFile::moveToTrash(path);
}
#else
return false;
#endif
}
if (fileInfo.isDir())
if (fileInfo.isDir()) {
return Utilities::RemoveRecursive(path);
else
}
else {
return QFile::remove(path);
}
}