aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceCopyTask.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-07 20:18:56 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-07 20:18:56 +0300
commitbbd9e4de9b29e7cb58c7ec4e8a827fec59a8fb55 (patch)
tree855c32369f09dfa992b45eb4b3ded17cd97e140d /launcher/InstanceCopyTask.cpp
parent1e702ee40f211286f85fa5353704e358e7fe14a9 (diff)
parent9b9d439fce9408712a594bb294e3bd5f108e31bc (diff)
downloadPrismLauncher-bbd9e4de9b29e7cb58c7ec4e8a827fec59a8fb55.tar.gz
PrismLauncher-bbd9e4de9b29e7cb58c7ec4e8a827fec59a8fb55.tar.bz2
PrismLauncher-bbd9e4de9b29e7cb58c7ec4e8a827fec59a8fb55.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into mods_txt
Diffstat (limited to 'launcher/InstanceCopyTask.cpp')
-rw-r--r--launcher/InstanceCopyTask.cpp6
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();