use fs::move instead of qt rename
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
79e299123c
commit
5afe6600ee
5 changed files with 7 additions and 9 deletions
|
@ -953,7 +953,6 @@ bool InstanceList::commitStagedInstance(const QString& path,
|
|||
if (groupName.isEmpty() && !groupName.isNull())
|
||||
groupName = QString();
|
||||
|
||||
QDir dir;
|
||||
QString instID;
|
||||
InstancePtr inst;
|
||||
|
||||
|
@ -977,7 +976,7 @@ bool InstanceList::commitStagedInstance(const QString& path,
|
|||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!dir.rename(path, destination)) {
|
||||
if (!FS::move(path, destination)) {
|
||||
qWarning() << "Failed to move" << path << "to" << destination;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue