aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/World.cpp
diff options
context:
space:
mode:
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);