summaryrefslogtreecommitdiff
path: root/src/instancemanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-05 08:53:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-05 08:53:31 -0400
commit76df854483c40cb7610d79c5540a5e67f554d840 (patch)
tree14670d7ce21598f7570de952ad104b2f3576010a /src/instancemanager.cpp
parent605b669bed0344fa6539a471a040d3ceeb24771c (diff)
only log a warning for symlinks instead of exiting MO
added logs: when dmp files are present, for portable instances, and the ini path clear the log widget when switching instances
Diffstat (limited to 'src/instancemanager.cpp')
-rw-r--r--src/instancemanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/instancemanager.cpp b/src/instancemanager.cpp
index c0d343de..ec3c1add 100644
--- a/src/instancemanager.cpp
+++ b/src/instancemanager.cpp
@@ -263,6 +263,11 @@ QStringList InstanceManager::instances() const
}
+bool InstanceManager::isPortablePath(const QString& dataPath)
+{
+ return (dataPath == qApp->applicationDirPath());
+}
+
bool InstanceManager::portableInstall() const
{
return QFile::exists(qApp->applicationDirPath() + "/" +
@@ -303,7 +308,7 @@ void InstanceManager::createDataPath(const QString &dataPath) const
QString InstanceManager::determineDataPath()
{
QString instanceId = currentInstance();
- if (portableInstallIsLocked())
+ if (portableInstallIsLocked())
{
instanceId.clear();
}