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
|
@ -137,7 +137,7 @@ void PackInstallTask::install()
|
|||
QDir unzipMcDir(m_stagingPath + "/unzip/minecraft");
|
||||
if (unzipMcDir.exists()) {
|
||||
// ok, found minecraft dir, move contents to instance dir
|
||||
if (!QDir().rename(m_stagingPath + "/unzip/minecraft", m_stagingPath + "/.minecraft")) {
|
||||
if (!FS::move(m_stagingPath + "/unzip/minecraft", m_stagingPath + "/.minecraft")) {
|
||||
emitFailed(tr("Failed to move unzipped Minecraft!"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue