summaryrefslogtreecommitdiff
path: root/src/instancemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/instancemanager.cpp')
-rw-r--r--src/instancemanager.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/instancemanager.cpp b/src/instancemanager.cpp
index c79c5254..61c442be 100644
--- a/src/instancemanager.cpp
+++ b/src/instancemanager.cpp
@@ -334,13 +334,7 @@ std::optional<Instance> InstanceManager::currentInstance() const
}
}
- QString path = instancePath(name);
- if (!QFileInfo::exists(path)) {
- // the previously used instance doesn't exist anymore
- return {};
- }
-
- return Instance(QDir(path), false, profile);
+ return Instance(QDir(instancePath(name)), false, profile);
}
void InstanceManager::clearCurrentInstance()