diff options
author | Tayou <31988415+TayouVR@users.noreply.github.com> | 2023-06-07 16:14:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 16:14:53 +0200 |
commit | 51ed39804f7f10f0ca34f29fc7a36600777bfdf1 (patch) | |
tree | 6fc3431c9d878b006c61fb2b9e33b072d4718ad9 /launcher | |
parent | accf0cd40e8c7788591af4b169372245c25efe18 (diff) | |
parent | d12110b47bb1bb5109e41f2cf0f20908ceb8bc10 (diff) | |
download | PrismLauncher-51ed39804f7f10f0ca34f29fc7a36600777bfdf1.tar.gz PrismLauncher-51ed39804f7f10f0ca34f29fc7a36600777bfdf1.tar.bz2 PrismLauncher-51ed39804f7f10f0ca34f29fc7a36600777bfdf1.zip |
Merge pull request #1125 from Ryex/fix/link-crash-1118
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/InstanceCopyTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/InstanceCopyTask.cpp b/launcher/InstanceCopyTask.cpp index 60dcd5a1..57a3143a 100644 --- a/launcher/InstanceCopyTask.cpp +++ b/launcher/InstanceCopyTask.cpp @@ -149,7 +149,7 @@ void InstanceCopyTask::copyFinished() QByteArray allowed_symlinks; if (allowed_symlinks_file.exists()) { - allowed_symlinks.append(FS::read(allowed_symlinks_file.path())); + allowed_symlinks.append(FS::read(allowed_symlinks_file.filePath())); if (allowed_symlinks.right(1) != "\n") allowed_symlinks.append("\n"); // we want to be on a new line } @@ -157,9 +157,9 @@ void InstanceCopyTask::copyFinished() allowed_symlinks.append("\n"); if (allowed_symlinks_file.isSymLink()) FS::deletePath(allowed_symlinks_file - .path()); // we dont want to modify the original. also make sure the resulting file is not itself a link. + .filePath()); // we dont want to modify the original. also make sure the resulting file is not itself a link. - FS::write(allowed_symlinks_file.path(), allowed_symlinks); + FS::write(allowed_symlinks_file.filePath(), allowed_symlinks); } emitSucceeded(); |