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:
parent
14719b3ec3
commit
d45e51a4e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user