no need for extra exist check
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
b872f88617
commit
1a84dc9bca
1 changed files with 0 additions and 3 deletions
|
@ -163,9 +163,6 @@ bool Resource::enable(EnableAction action)
|
||||||
path += ".disabled";
|
path += ".disabled";
|
||||||
path = FS::getUniqueResourceName(path);
|
path = FS::getUniqueResourceName(path);
|
||||||
}
|
}
|
||||||
if (QFileInfo::exists(path)) { // the path exists so just remove the file at path
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!file.rename(path))
|
if (!file.rename(path))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue