mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +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:
parent
14719b3ec3
commit
d45e51a4e5
|
@ -143,7 +143,7 @@ bool QzTools::removeRecursively(const QString &filePath)
|
||||||
}
|
}
|
||||||
if (fileInfo.isDir() && !fileInfo.isSymLink()) {
|
if (fileInfo.isDir() && !fileInfo.isSymLink()) {
|
||||||
QDir dir(filePath);
|
QDir dir(filePath);
|
||||||
dir = dir.canonicalPath();
|
dir.setPath(dir.canonicalPath());
|
||||||
if (dir.isRoot() || dir.path() == QDir::home().canonicalPath()) {
|
if (dir.isRoot() || dir.path() == QDir::home().canonicalPath()) {
|
||||||
qCritical() << "Attempt to remove root/home directory" << dir;
|
qCritical() << "Attempt to remove root/home directory" << dir;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user