fix tests
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1a84dc9bca
commit
8cdaf5d05f
@ -161,7 +161,9 @@ bool Resource::enable(EnableAction action)
|
||||
path.chop(9);
|
||||
} else {
|
||||
path += ".disabled";
|
||||
path = FS::getUniqueResourceName(path);
|
||||
if (QFile::exists(path)) {
|
||||
path = FS::getUniqueResourceName(path);
|
||||
}
|
||||
}
|
||||
if (!file.rename(path))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user