1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Port from deprecated QDir::operator=(const QString&) > QDir::setPath()

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-31 19:41:28 +01:00
parent 14719b3ec3
commit d45e51a4e5
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -143,7 +143,7 @@ bool QzTools::removeRecursively(const QString &filePath)
}
if (fileInfo.isDir() && !fileInfo.isSymLink()) {
QDir dir(filePath);
dir = dir.canonicalPath();
dir.setPath(dir.canonicalPath());
if (dir.isRoot() || dir.path() == QDir::home().canonicalPath()) {
qCritical() << "Attempt to remove root/home directory" << dir;
return false;