no need for extra exist check
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
b872f88617
commit
1a84dc9bca
@ -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…
Reference in New Issue
Block a user