summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-11-06 13:56:04 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-07 20:16:25 -0500
commitdc2ada2a4249917f538938298deb193ed1dd6bb9 (patch)
tree9f5564aae12004e4a55ed63f1ce294c0c75d7816 /src/main.cpp
parentb7cb63ddb1e2b263d5e485c97faea527c7c0af44 (diff)
added ... to the "Delete Instance" button to make it less scary
merged InstanceInfo into Instance, most of it was redundant added logging before deleting instance added Instance::readFromIni(), contains stuff that used to be in setup(), used by instance dialog replaced QDir with QString in a few places, I hate QDir
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7f0886f6..a2653685 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -662,17 +662,17 @@ int doOneRun(
}
else
{
- if (!currentInstance->directory().exists()) {
+ if (!QDir(currentInstance->directory()).exists()) {
// the previously used instance doesn't exist anymore
if (m.hasAnyInstances()) {
criticalOnTop(QObject::tr(
"Instance at '%1' not found. Select another instance.")
- .arg(currentInstance->directory().absolutePath()));
+ .arg(currentInstance->directory()));
} else {
criticalOnTop(QObject::tr(
"Instance at '%1' not found. You must create a new instance")
- .arg(currentInstance->directory().absolutePath()));
+ .arg(currentInstance->directory()));
}
currentInstance = selectInstance();
@@ -682,7 +682,7 @@ int doOneRun(
}
}
- const QString dataPath = currentInstance->directory().path();
+ const QString dataPath = currentInstance->directory();
application.setProperty("dataPath", dataPath);
setExceptionHandlers();