summaryrefslogtreecommitdiff
path: root/src/instancemanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-25 21:17:24 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:05 -0500
commitcfdfa9d40e09d509396f57fbf70b48fa2136c230 (patch)
treebe3810fc793423affe512d691770f70611b40f7f /src/instancemanager.cpp
parent048e3ac0d9b4e4258c9c2ac4d39d332f340e73a0 (diff)
PathChecker is unnecessary, refactored its guts into NamePage and PathsPage
made existing paths just a warning, don't check for portable 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 b135cac1..849cdb5e 100644
--- a/src/instancemanager.cpp
+++ b/src/instancemanager.cpp
@@ -353,7 +353,12 @@ QStringList InstanceManager::instanceNames() const
bool InstanceManager::isPortablePath(const QString& dataPath)
{
- return (dataPath == qApp->applicationDirPath());
+ return (dataPath == portablePath());
+}
+
+QString InstanceManager::portablePath()
+{
+ return qApp->applicationDirPath();
}
bool InstanceManager::portableInstall() const