aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/World.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-02 21:34:55 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-07-10 12:19:15 +0200
commitc36342371819a4983b5ac2b928acc6a78b857ed8 (patch)
tree925d5ef6756a205feddc40864c0717e0c6472d44 /launcher/minecraft/World.cpp
parente58158c3cd629717a9742fe08da9b09ed39bc198 (diff)
downloadPrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.tar.gz
PrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.tar.bz2
PrismLauncher-c36342371819a4983b5ac2b928acc6a78b857ed8.zip
refactor: fix deprecation up to Qt 6
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/World.cpp')
-rw-r--r--launcher/minecraft/World.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/minecraft/World.cpp b/launcher/minecraft/World.cpp
index dc756e06..e974953a 100644
--- a/launcher/minecraft/World.cpp
+++ b/launcher/minecraft/World.cpp
@@ -321,7 +321,8 @@ bool World::install(const QString &to, const QString &name)
if(ok && !name.isEmpty() && m_actualName != name)
{
- World newWorld(finalPath);
+ QFileInfo finalPathInfo(finalPath);
+ World newWorld(finalPathInfo);
if(newWorld.isValid())
{
newWorld.rename(name);