summaryrefslogtreecommitdiff
path: root/src/instancemanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-05 08:55:25 -0400
committerGitHub <noreply@github.com>2019-10-05 08:55:25 -0400
commit73556ad0845ee6dea2ec9f1fa50903de0448fa91 (patch)
tree14670d7ce21598f7570de952ad104b2f3576010a /src/instancemanager.cpp
parent605b669bed0344fa6539a471a040d3ceeb24771c (diff)
parent76df854483c40cb7610d79c5540a5e67f554d840 (diff)
Merge pull request #852 from isanae/symlinks-log-only
Symlinks warning
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();
}